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

static

Prevents linking with shared libraries.

Syntax

Linux:

-static

Windows:

None

Arguments

None

Default

OFF

The compiler links with shared libraries except as otherwise specified by -static-intel or its default.

Description

This option prevents linking with shared libraries. It causes the executable to link all libraries statically.

NOTE:

This option does not cause static linking of libraries for which no static version is available. These libraries can only be linked dynamically.

NOTE:

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

IDE Equivalent

Visual Studio: None

Eclipse: Libraries > Link with static libraries

Alternate Options

None

See Also