User and Reference Guide for the Intel® C++ Compiler 14.0

stdlib

Lets you select the C++ library to be used for linking.

Architecture Restrictions

Not available on Intel® 64 architecture targeting Intel® MIC Architecture

Syntax

Linux OS:

None

OS X:

-stdlib[=keyword]

Windows OS:

None

Arguments

keyword

Is the function information to include. Possible values are:

libstdc++

Links using the GNU libstdc++ library.

libc++

Links using the libc++ library.

Default

-stdlib=libstdc++

The compiler links using the GNU libstdc++ library.

Description

This option lets you select the C++ library to be used for linking.

Currently, if you do not specify this option, the libstdc++ headers and library are used.

Note

The IDE provides another possible setting for option -stdlib, which lets you choose the compiler default rather than a specific library. Note that the compiler default may change in a future release.

IDE Equivalent

Windows: None

Linux: None

OS X: Language > C++ standard library > libstdc++

Language > C++ standard library > libc++

Language > C++ standard library > compiler-default

Alternate Options

None


Submit feedback on this help topic