nofor_main

Specifies that the main program is not written in Fortran.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -nofor_main
Windows: None

Arguments

None

Default

OFF The compiler assumes the main program is written in Fortran.

Description

This option specifies that the main program is not written in Fortran. It is a link-time option that prevents the compiler from linking for_main.o into applications.

For example, if the main program is written in C and calls a Fortran subprogram, specify -nofor_main when compiling the program with the ifort command.

If you omit this option, the main program must be a Fortran program.

Alternate Options

None