LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Miha_Vitorovic

Improve C preprocessor

Status: New

The C preprocessor in other compilers has seen some improvements over the years. Maybe you could freshen the CVI one up a little bit. With most modern C compilers there are some pretty advanced things that can be done in the preprocessor. But include those header files into a CVI project, and you start getting errors in the strangest places. And the cause of these isn't even some nasty trick, but pretty basic stuff for any other preprocessor.

2 Comments
LuisG
NI Employee (retired)

Hi Miha,

 

Could you post some examples of code that the CVI preprocessor does not handle?

 

Thanks,

Luis

Miha_Vitorovic
Member

A bit of a background first: I was trying to make some DLL compile that uses a lot of Windows header files. On closer inspection it makes sense the do not work in CVI, since the macros actually expand to MS specific things. I just wish the error message would be clearer than " "crtdefs.h"(560,121)   syntax error; found ')' expecting ';'."

 

Sorry about the noise.