define

Specifies a definition (symbol) to use with conditional compilation.

IDE Equivalent

Windows:
General > Preprocessor Definitions

Preprocessor > Preprocessor Definitions

Linux: None
Mac OS: None

Architectures

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

Syntax

Linux and Mac OS: None
Windows:  /define:name[=value]

Arguments

name Is the name of the definition (symbol).
value Is an optional integer or an optional character string delimited by double quotes; for example, /define:name="string".

Default

OFF No additional symbols are defined.

Description

This option specifies a definition (symbol) to use with conditional compilation directives or the Fortran preprocessor (fpp). You can assign an optional value to the definition.

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

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

If you want the symbol values defined to apply only to fpp and not to compiler directives, you must also specify option /noD on the command line.

Alternate Options

Linux and Mac OS: -D
Windows: /D

See Also

Building Applications: Predefined Preprocessor Symbols