Syntax for the ifort Command

Use the syntax below to invoke the Intel® Fortran Compiler from the command line:

ifort [options] input_file(s)

An option is specified by one or more letters preceded by a hyphen (-) for Linux and Mac OS* and a slash (/) for Windows*.  (You can use a hyphen (-) instead of a slash for Windows, but this is not the preferred method.)

The following rules apply:

Note

Options on the command line apply to all files. For example, in the following command line, the -c and -nowarn options apply to both files x.f and y.f:
ifort -c x.f -nowarn y.f

ifort /warn:usage,declarations test.f90

You can use an equals sign (=) instead of the colon:

ifort /warn=usage,declarations test.f90