Admin Production ni-theme
Current Publication

Compiler Defines

LabWindows/CVI

Compiler Defines

The LabWindows/CVI compiler accepts compiler defines in the Build Options dialog box, which you can access by selecting Options»Build Options.

Compiler defines have the following syntax:

/Dx or /Dx=y

The variable x is a valid C identifier. You can use x in source code as a predefined macro. For example, you can use x as the argument to the #if or #ifdef preprocessor directive for conditional compilation. If y contains embedded blanks, you must surround it with double quotation marks.

The Predefined Macros dialog box, which you can access by selecting Predefined Macros in the Build Options dialog box, contains a list of the macros that LabWindows/CVI predefines. This list includes the name and value of each predefined macro.

Note  The default compiler defines string contains the following definition: /DWIN32_LEAN_AND_MEAN. This definition reduces the time and memory taken to compile the Windows SDK include files.