# shared-libgcc

Links the GNU libgcc library dynamically.

## Syntax

Linux: | -shared-libgcc

macOS: | None

Windows: | None

## Arguments

None

## Default

-shared-libgcc | The compiler links the libgcc library dynamically.

## Description

This option links the GNU libgcc library dynamically. It is the opposite of option static-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 of the static option, which causes all libraries to be linked statically.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Linking or Linker Options

## See Also

static-libgcc compiler option