Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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

macOS:

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