Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Compiler Defines

LabWindows/CVI 8.5 Help
November 2007

NI Part Number:
370051K-01

»View Product Info

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 Windows SDK include files.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit