D

Defines a symbol name that can be associated with an optional value.

IDE Equivalent

Windows:
General: >Preprocessor Definitions
(/define)
Preprocessor>Preprocessor Definitions (/define)
Preprocessor > Preprocessor Definitions to FPP only (/nodefine)
Linux: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -Dname[=value]
-noD
Windows:  /Dname[=value]
/noD

Arguments

name Is the name of the symbol.
value    Is an optional integer or an optional character string delimited by double quotes; for example, Dname="string".

Default

OFF Only default symbols or macros are defined.

Description

Defines a symbol name that can be associated with an optional value.This definition is used during preprocessing.

If a value  is not specified, name  is defined as "1".

If you want to specify more than one definition, you must use separate D options.

If you specify noD, all preprocessor definitions apply only to fpp and not to IntelŪ Fortran conditional compilation directives. To use this option, you must also specify option fpp.

Caution

On Linux systems, if you are not specifying a value, do not use D for name, because it will conflict with the -DD option.

Alternate Options

D Linux: None
Windows: /define
noD  Linux: -nodefine
Windows: /nodefine

See Also

Building Applications: Predefined Preprocessor Symbols