Visible to Intel only — GUID: GUID-BC71A564-2157-4A58-9798-9DA8BB9320E9
Visible to Intel only — GUID: GUID-BC71A564-2157-4A58-9798-9DA8BB9320E9
fpp
Runs the Fortran preprocessor on source files before compilation.
Linux: |
-fpp -nofpp |
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:
Specify option Qoption,fpp,"option". This is the recommended method.
Linux and macOS
Specify option -Wp,fpp_option (for example, -Wp,-macro=no).
Windows
Specify option fpp and include the argument fpp_option (for example, fpp:"/macro=no").
To see a list of all available fpp options, specify the following on the command line:
Linux and macOS
fpp -help
Windows
fpp /help
Visual Studio: Preprocessor > Preprocess Source File
Linux and macOS: -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 and macOS
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