Tells the compiler to link using the C++ run-time libraries and header files provided by gcc.
Windows: None
Linux: Preprocessor > gcc Compatibility Options
Mac OS: Preprocessor > gcc Compatibility Options
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
Linux and Mac OS: | -cxxlib[=dir] -cxxlib-nostd -no-cxxlib |
Windows: | None |
dir | Is an optional top-level location for the gcc binaries and libraries. |
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. |
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.
-cxxlib | Linux and Mac OS: -cxxlib-gcc
(this is a deprecated
option) Windows: None |
Building Applications: Compiler Options for Interoperability