Oracle® Solaris Studio 12.4: C++ User's Guide

Exit Print View

Updated: March 2015
 
 

11.7 Replacing the C++ Standard Library

Replacing the standard library that is distributed with the compiler is risky, and good results are not guaranteed. The basic operation is to disable the standard headers and library supplied with the compiler and to specify the directories where the new header files and library are found, as well as the name of the library itself.

The compiler supports the STLport and Apache stdcxx implementations of the standard library. See STLport and Apache stdcxx Standard Library for more information.

This discussion of replacing the C++ standard library applies only to the default -compat=5 mode. Replacing the g++ headers and library in -compat=g, -std-c++03 or -std=c++11 mode is not supported.