Visible to Intel only — GUID: GUID-37D702BD-347E-42FE-8F8E-1E9BFC477453
Visible to Intel only — GUID: GUID-37D702BD-347E-42FE-8F8E-1E9BFC477453
D
Defines a macro name that can be associated with an optional value.
Linux: |
-Dname[=value] |
Windows: |
/Dname[=value] |
name |
Is the name of the macro. |
value |
Is an optional integer or an optional character string delimited by double quotes; for example, Dname=string. |
OFF |
Only default symbols or macros are defined. |
Defines a macro name that can be associated with an optional value. This option is equivalent to a #define preprocessor directive.
If a value is not specified, name is defined as "1".
Visual Studio: Preprocessor > Preprocessor Definitions
Eclipse: Preprocessor > Preprocessor Definitions
None
Example
To define a macro called SIZE with the value 100, enter the following command:
Linux
icpx -DSIZE=100 prog1.cpp
Windows
icx /DSIZE=100 prog1.cpp
If you define a macro, but do not assign a value, the compiler defaults to 1 for the value of the macro.