Intel® Fortran Compiler 16.0 User and Reference Guide
Runs the Fortran preprocessor on source files before compilation.
Linux and OS X: | -fpp -nofpp |
Windows: | /fpp /fpp[:"fpp_option"] /nofpp |
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. |
nofpp |
The Fortran preprocessor is not run on files before compilation. |
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:
Use option Qoption,fpp,"option". This is the recommended method.
On Windows* OS, use this option (fpp) and include the argument fpp_option (for example, fpp:"/macro=no").
On Linux* OS and OS X*, use option -Wp,fpp_option (for example, -Wp,-macro=no).
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
Visual Studio: Preprocessor > Preprocess Source File
Eclipse: None
Xcode: Preprocessor > Preprocess Source File
Linux and OS X: -cpp (this is a deprecated option)
Windows: None
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* OS)
ifort -fpp –Qoption,fpp,"-undef" file.f90 ! Undefines all predefined macros (Linux* OS and OS X*)