Intel® Fortran Compiler XE 13.1 User and Reference Guides

gen-interfaces

Tells the compiler to generate an interface block for each routine in a source file.

IDE Equivalent

None

Architectures

All

Syntax

Linux and OS X:

-gen-interfaces [[no]source]

-nogen-interfaces

Windows:

/gen-interfaces[:[no]source]

/nogen-interfaces

Arguments

None

Default

nogen-interfaces

The compiler does not generate interface blocks for routines in a source file.

Description

This option tells the compiler to generate an interface block for each routine (that is, for each SUBROUTINE and FUNCTION statement) defined in the source file. The compiler generates two files for each routine, a .mod file and a .f90 file, and places them in the current directory or in the directory specified by the include (-I) or -module option. The .f90 file is the text of the interface block; the .mod file is the interface block compiled into binary form.

If source is specified, the compiler creates the procedure-name__GENmod.f90 as well as the procedure-name__GENmod.mod files. If nosource is specified, the compiler creates the procedure-name__GENmod.mod but not the procedure-name__GENmod.f90 files. If neither is specified, it is the same as specifying -gen-interfaces source (Linux* OS and OS X*) or /gen-interfaces:source (Windows* OS).

On Windows* OS, for a Debug configuration in a Visual Studio project, the default is /warn:interfaces.

Alternate Options

None


Submit feedback on this help topic