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

ID 767253
Date 7/13/2023
Public

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

Document Table of Contents

foffload-static-lib

Tells the compiler to link with a fat (multi-architecture) static library. This is a deprecated option that may be removed in a future release.

Syntax

Linux:

-foffload-static-lib=file

Windows:

-foffload-static-lib=file

Arguments

file

Is the name of the fat static library to use. It can include the path where the library is located.

Default

OFF

No linking occurs to a fat static library.

Description

This option tells the compiler to link with a fat (multi-architecture) static library.

The filename specified is treated as a "fat" static library of device code - an archive of fat objects. When linking, the compiler will extract the device code from the objects contained in the library and link it with other device objects coming from the individual fat objects passed on the command line.

NOTE:

If you try to pass libraries by using compiler option l, there can be dynamic libraries and partial linking with dynamic libraries, which may lead to a crash.

IDE Equivalent

None

Alternate Options

None