Intel® C++ Compiler Classic Developer Guide and Reference

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

static-libstdc++

Links the GNU libstdc++ library statically.

Syntax

Linux:

-static-libstdc++

macOS:

None

Windows:

None

Arguments

None

Default

OFF

The compiler links the GNU libstdc++ library dynamically.

Description

This option links the GNU libstdc++ library statically.

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.

IDE Equivalent

None

Alternate Options

None

See Also