Intel® Fortran Compiler 17.0 Developer Guide and Reference

fpp

Runs the Fortran preprocessor on source files before compilation.

Syntax

Linux and macOS:

-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 one of the following on the command line:

fpp -help     ! Linux and OS X systems
fpp /help     ! Windows systems

IDE Equivalent

Visual Studio: Preprocessor > Preprocess Source File

Eclipse: None

Xcode: Preprocessor > Preprocess Source File

Alternate Options

Linux and OS X: -cpp (this is a deprecated option)

Windows: None

Example

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

ifort /fpp /Qoption,fpp,"/macro=no_com"  file.f90        ! Disables macro expansion within comments (Windows*)
ifort -fpp –Qoption,fpp,"-undef"  file.f90               ! Undefines all predefined macros (Linux* and OS X*)

See Also