Runs the Fortran preprocessor on source files before compilation.
Linux: | -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
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
fpp -help
Windows
fpp /help
Visual Studio: Preprocessor > Preprocess Source File
Linux: -cpp (this is a deprecated option)
Windows: None
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