3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using The C++ Standard Library
12.1 C++ Standard Library Header Files
12.2 C++ Standard Library Man Pages
12.3.1 Redistribution and Supported STLport Libraries
13. Using the Classic iostream Library
Use the Apache stdcxx version 4 C++ standard library in Solaris, instead of the default libCstd by compiling with -library=stdcxx4. This option also sets the -mt option implicitly. The stdcxx library requires multi-threading mode. This option must be used consistently on every compilation and link command in the entire application. Code compiled with -library=stdcxx4 cannot be used in the same program as code compiled with the default -library=Cstd or the optional -library=stlport4.