cxxlib

Tells the compiler to link using the C++ run-time libraries and header files provided by Intel or gcc, depending on the installed version of gcc.

IDE Equivalent

Windows: None

Linux: Preprocessor > gcc Compatibility Options

Mac OS: Preprocessor > gcc Compatibility Options

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux and Mac OS: -cxxlib[-mode]
Windows:  None

Arguments

mode   Specifies which C++ run-time libraries to use. Possible values are:
  gcc[=dir] Tells the compiler to link using the C++ run-time libraries and header files provided by gcc.
dir
is an optional top-level location for the gcc binaries and libraries.
  icc Tells the compiler to link using the C++ run-time libraries and header files provided by Intel. -cxxlib-icc is only available on IA-32 and ItaniumŪ-based Linux systems.

Default

-cxxlib-gcc or
-cxxlib-icc
On Linux* systems, if you are using gcc version 3.2 or newer, the compiler uses the run-time libraries and headers provided by gcc. If you are using a gcc version less than 3.2. the compiler uses the run-time libraries and headers provided by Intel.
-cxxlib-gcc On Mac OS* systems, the compiler uses the run-time libraries and headers provided by gcc.

Description

This option tells the compiler to link using the C++ run-time libraries and header files provided by Intel or gcc, depending on the installed version of gcc.

If you specify the option with no mode, the compiler uses the default C++ libraries.

Note

For full interoperability with gcc, use -cxxlib-gcc. Do not use the -cxxlib-gcc option if your version of gcc is older than 3.2.

Caution

All object binaries used in a single link must be compiled with the same mode value, whether invoked explicitly or by default.

Alternate Options

None

See Also

Building Applications: Compiler Options for Interoperability