static

Prevents linking with shared libraries.

IDE Equivalent

None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux:

-static

Mac OS X:

None

Windows:

/static

Arguments

None

Default

Linux: OFF
Windows: varies

On Linux* systems, the compiler links with shared libraries. On Windows* systems, for option /Qvc8 and higher, /static is equivalent to option /MT. For more information, see that compiler option.

Description

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

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.