fpp

Runs the Fortran preprocessor on source files before compilation.

Syntax

Linux:

-fpp

-nofpp

Windows:

/fpp

/fpp[:"fpp_option"]

/nofpp

Arguments

fpp_option

Is a Fortran preprocessor (fpp) option; it must start with a slash (/) and appear in quotes. This argument is only allowed on Windows* systems.

Default

nofpp

The Fortran preprocessor is not run on files before compilation.

Description

This option runs the Fortran preprocessor on source files before they are compiled.

If you want to pass fpp options to the Fortran preprocessor, you can use any of the following methods:

To see a list of all available fpp options, specify the following on the command line:

Linux

fpp -help   

Windows

fpp /help    

IDE Equivalent

Visual Studio: Preprocessor > Preprocess Source File

Alternate Options

Linux: -cpp (this is a deprecated option)

Windows: None

Example

The following examples show the recommended method of passing fpp options to the Fortran preprocessor.

Linux

This code undefines all predefined macros:

ifort -fpp –Qoption,fpp,"-undef"  file.f90 

Windows

This code disables macro expansion within comments:

ifort /fpp /Qoption,fpp,"/macro=no_com"  file.f90 

See Also