exe

Specifies the name for a built program or dynamic-link library.

IDE Equivalent

None

Architectures

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

Syntax

Linux:

None

Windows:  /exe:{file | dir}

Arguments

file 

Is the name for the built program or dynamic-link library.

dir    

Is the directory where the built program or dynamic-link library should be placed. It can include file.  

Default

OFF The name of the file is the name of the first source file on the command line with file extension .exe, so file.f becomes file.exe.

Description

This option specifies the name for a built program (.EXE) or a dynamic-link library (.DLL).

You can use this option to specify an alternate name for an executable file. This is especially useful when compiling and linking a set of input files. You can use the option to give the resulting file a name other than that of the first input file (source or object) on the command line.

You can use this option to specify an alternate name for an executable file. This is especially useful when compiling and linking a set of input files. You can use the option to give the resulting file a name other than that of the first input file (source or object) on the command line.

Alternate Options

Linux: -o
Windows: /Fe

Example

The following example creates a dynamic-link library file named file.dll (note that you can use /LD in place of /dll):

ifort /dll /exe:file.dll a.f

In the following example (which uses the alternate option /Fe), the command produces an executable file named outfile.exe as a result of compiling and linking three files: one object file and two Fortran source files.

prompt>ifort /Feoutfile.exe file1.obj file2.for file3.for

By default, this command produces an executable file named file1.exe.

See Also

o compiler option