Sun Studio 12: C++ User's Guide

How This Book Is Organized

This manual covers the following topics:

C++ Compiler. Sending Your Comments provides introductory material about the compiler, such as standards conformance and new features.1.6 Native-Language Support explains how to use the compiler and 2.7.3.3 Using make With Standard Library Header Files discusses how to use the compiler’s command line options.

Writing C++ Programs. Table 3–18 discusses how to compile nonstandard code that is commonly accepted by other C++ compilers. 4.10 Using the Predefined __func__ Symbol for Function Name makes suggestions for setting up and organizing header files and template definitions. 5.2.2 Template Definitions Separate discusses how to create and use templates and 6.7.7 Building Multiple Programs Using Templates in the Same Directory explains various options for compiling templates. Exception handling is discussed in 7.5.3 Troubleshooting a Problematic Search and information about cast operations is provided in 8.6 Building Shared Libraries That Have Exceptions. 9.4.3 Casting Down or Across the Hierarchy discusses performance techniques that strongly affect the C++ compiler. 10.5 Cache Member Variables provides information about building multithreaded programs.

Libraries. 11.4.8 An Example Application explains how to use the libraries that are provided with the compiler. The C++ standard library is discussed in Caveats:, the classic iostream library (for compatibility mode) is discussed in 13.3.1 Redistribution and Supported STLport Libraries, and the complex arithmetic library (for compatibility mode) is discussed in Table 14–4. Table 15–3 provides information about building libraries.

Appendices. 16.8 Using dlopen to Access a C++ Library From a C Program lists the complete set of C++ compiler options in alphabetic order and A.2.185 -z[ ]arg lists the C++ compiler pragmas.