Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

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

Document Table of Contents

Fe

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

Syntax

Linux:

None

Windows:

/Fe[[:]filename|dir]

Arguments

filename

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.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

Linux: -o

Windows: None

Example

In the following example, the command produces an executable file named outfile.exe as a result of compiling and linking three files: one object file and two C++ source files.

prompt> icx /Feoutfile.exe file1.obj file2.cpp file3.cpp

This command produces an executable file named file1.exe when the /Fe option is not used.

See Also