cxxlib

Tells the compiler to link using the C++ run-time libraries and header files provided by gcc.

IDE Equivalent

Windows: None

Linux: Preprocessor > gcc Compatibility Options

Mac OS: Preprocessor > gcc Compatibility Options

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -cxxlib[=dir]
-cxxlib-nostd

-no-cxxlib
Windows:  None

Arguments

dir Is an optional top-level location for the gcc binaries and libraries.

Default

C++: -cxxlib
C: -no-cxxlib
For C++, the compiler uses the run-time libraries and headers provided by gcc.
For C, the compiler uses the default run-time libraries and headers and does not link to any additional C++ run-time libraries and headers. However, if you specify compiler option -std=gnu++98, the default is -cxxlib.

Description

This option tells the compiler to link using the C++ run-time libraries and header files provided by gcc.

Option -cxxlib-nostd prevents the compiler from linking with the standard C++ library.

Alternate Options

-cxxlib Linux and Mac OS: -cxxlib-gcc (this is a deprecated option)
Windows: None

See Also

Building Applications: Compiler Options for Interoperability