Intel® C++ Compiler 16.0 User and Reference Guide

cxxlib

Determines whether the compiler links using the C++ run-time libraries and header files provided by gcc.

Syntax

Linux:

-cxxlib[=dir]

-cxxlib-nostd

-no-cxxlib

OS X:

None

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 determines whether the compiler links using the C++ run-time libraries and header files provided by gcc.

If you specify dir for cxxlib, the compiler uses dir/bin/gcc to setup the environment.

Option -cxxlib=dir can be used with option -gcc-name=name to specify the location dir/bin/name.

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

IDE Equivalent

Visual Studio: None

Eclipse: Preprocessor > gcc Compatibility Options

Xcode: None

Alternate Options

None

See Also