LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ctype.h syntax errors!?

I've been using LabWindows CVI 7.1.1 for a while on my Win XP box, and have successfully created many programs with it. I stopped using it for a while, and now that I've come back to it I'm having issues with compiling programs that include ansi_c.h. Specifically, I get syntax and 'extraneous formal parameter specification' errors in ctype.h. Anyone have any ideas what may have happened, and even better, how to fix it? I've both repaired and reinstalled to no effect.

Thanks,
-Steve
0 Kudos
Message 1 of 4
(3,374 Views)
Hey Steve,
 
It is strange that the error would occur after working fine for a while.  What are your default calling conventions and compatibility mode (set in Options >> Build Options)?  Also, have you tried running any of the shipping examples that use the ansi C library?  I would be curious to know if the same error occurs.
 
Best Regards,
Megan B.
National Instruments

 

0 Kudos
Message 2 of 4
(3,341 Views)
Hi Megan,

I'm using the defaults of Visual C/C++ compatibility and cdecl calling convention. I've tried a couple of the samples that use the ansi_c library and they both come up with the same errors.

Thanks,
-Steve
0 Kudos
Message 3 of 4
(3,317 Views)

Hi Steve,

I'm almost stumped but let's try a few other things.  First of all, I've attached the ctype.h file from my CVI 7.1 directory.  Check and make sure that yours is exactly the same.  Second, I want to confirm that you completely uninstalled 7.1.1 -- both the patch and then CVI 7.1 itself.  Could you remove both and then check and make sure that the entire CVI folder has been deleted in Program File/National Instruments.  Then reinstall and see if this makes a difference.

Good luck Steve!!
Megan B.
National Instruments

 

0 Kudos
Message 4 of 4
(3,290 Views)