Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

static

Prevents linking with shared libraries.

Syntax

Linux:

-static

macOS:

None

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, such as the OpenMP run-time libraries on Windows*. These libraries can only be linked dynamically.

IDE Equivalent

Visual Studio: None

Eclipse: Libraries > Link with static libraries

Xcode: None

Alternate Options

None

See Also