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

Exit Print View

Updated: March 2015
 
 

11.4.2 Linking C++ Libraries

The following table shows the compiler options for linking the C++ libraries. See -library=l[,l...] for more information.

Table 11-2  Compiler Options for Linking C++ Libraries
Library
Option
Classic iostream
-library=iostream
Garbage collection
-library=gc
STLport version 4
-library=stlport4
STLport version 4 debug
-library=stlport4_dbg
Apache stdcxx version 4
-library=stdcxx4
Sun Performance Library
-library=sunperf

Note -  In -std=c++03 and -std=c++11 modes, only the gc and sunperf libraries can be added. There are no options for different versions of the C++ standard library.