Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/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-libgcc

Links the GNU libgcc library statically.

Syntax

Linux:

-static-libgcc

macOS:

None

Windows:

None

Arguments

None

Default

OFF

The compiler links the GNU libgcc library dynamically.

Description

This option links the GNU libgcc library statically. It is the opposite of option -shared-libgcc.

This option is processed by the icc or icpc command that initiates linking, adding library names explicitly to the link command.

This option is useful when you want to override the default behavior, which causes the library to be linked dynamically.

NOTE:

If you want to use traceback, you must also link to the static version of the libgcc library. This library enables printing of backtrace information.

IDE Equivalent

None

Alternate Options

None

See Also