Intel® Fortran Compiler 17.0 Developer Guide and Reference
Runs the Fortran preprocessor on source files before compilation.
Linux and macOS: | -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* systems, use this option (fpp) and include the argument fpp_option (for example, fpp:"/macro=no").
On Linux* and OS X* systems, 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*)
ifort -fpp –Qoption,fpp,"-undef" file.f90 ! Undefines all predefined macros (Linux* and OS X*)