Fortran User's Guide

-Dname[=def]

Define symbol name for the preprocessor.

    SPARC: 77/90 x86:77

This option only applies to .F and .F90 source files.

-Dname=def Define name to have value def

-Dname Define name to be 1

On the command line, this option will define name as if:

#define name[=def]

had appears in the source file. If no =def specified, the name name is defined as the value 1. The macro symbol name is passed on to the preprocessor fpp (or cpp -- see the -xpp option) for expansion.

Following are the predefined values (these symbols have two leading underscores):

The compilers use the fpp(1) preprocessor by default. Like the C preprocessor cpp(1), fpp expands source code macros and enables conditional compilation of code. Unlike cpp, fpp understand Fortran syntax, and is preferred as a Fortran preprocessor. Use the -xpp=cpp flag to force the compiler to specifically use cpp rather than fpp.