Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

nofor-main

Specifies that the main program is not written in Fortran.

Syntax

Linux:

-nofor-main

macOS:

-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.

IDE Equivalent

None

Alternate Options

None