static

Prevents linking with shared libraries.

IDE Equivalent

Windows: None

Linux: Libraries > Link with static libraries

Mac OS: None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux: -static
Mac OS: None
Windows:  None

Arguments

None

Default

OFF The compiler links with shared libraries.

Description

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

Alternate Options

None