02-26-2010 10:00 AM
Hi all!
It is looks funny but LabWindows/CVI-9.1.0(427) can not compile a simple C-code 
xml.h
void f();
xml.c
#include "xml.h"
typedef struct
{
int bar;
} foo;
void f()
{
int baz=0;
if(!baz) baz=1;
foo foop;
return;
}
Solved! Go to Solution.
02-26-2010 10:07 AM
It's not a bug, you're doing an in-block declaration of a variable foop which isn't allowed in ANSI C89.
You can enable C99 extensions with a pragma if you want this to work in CVI 9.1
Menchar
02-26-2010 10:28 AM - edited 02-26-2010 10:28 AM
02-26-2010 10:36 AM
Hi Kolan,
you might want to mark the thread as solved if your initial problem has been solved as you indicate. You might even want to consider donating a little kudo to menchar for kind assistance 🙂
Wolfgang
02-26-2010 10:51 AM