LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Macro redefinition compile time error

#define FOO       1   

#define FOO       0.9

 

I had the above definitions in my code and cvi didn't complain while compiling, I thought it would, Can someone explain?

 

Thank you

 

      

0 Kudos
Message 1 of 2
(2,870 Views)

To get a warning for this you need to enable "Macro redefined" warning.

Options>>Build Options. Click on the "..." button in Compile Warnings section and check "Macro redefined" in Compilers Warnings dialog.

warning levels.png

Message 2 of 2
(2,835 Views)