-D
In this section:
Syntax
Parameters
| The name of the preprocessor symbol |
| The value of the preprocessor symbol |
Description
Use this option to define a preprocessor symbol. If no value is specified, 1 is used. This option can be used one or more times on the command line.
The option -D has the same effect as a #define statement at the top of the source file:
-Dsymbolis equivalent to:
#definesymbol1
To get the equivalence of:
#define FOOspecify the = sign but nothing after, for example:
-DFOO=
Caution
Project>Options>C/C++ Compiler>Preprocessor>Defined symbols