C/C++ Programmer's Guide (G06.25+)

HP C/C++ Programmer’s Guide for NonStop Systems429301-008
5-1
5 Using the Standard C++ Library
User Documentation on page 5-3
Features of the Standard C++ Library (VERSION3) on page 5-3
Contents of the Standard C++ Library on page 5-4
°
VERSION3 on page 5-4
°
VERSION2 on page 5-5
°
VERSION1 on page 5-5
Installation Notes for VERSION3 on page 5-6
°
Using Header Files With VERSION3 on page 5-7
Installation Notes for VERSION2 on page 5-7
°
Examples of VERSION2 Headers on page 5-8
°
VERSION2 Standard C++ Library Example Files on page 5-9
Compiling and Linking in the OSS Environment on page 5-12
Pragmas for the Standard C++ Library on page 5-12
Using the Neutral C++ Dialect on page 5-13
Three versions of the Standard C++ Library are available on NonStop systems, as
listed in Table 5-1.
Beginning with the G06.20 and H06.01 RVUs, VERSION3 is the default native C++
run-time library. For more information about the default language dialect, see
VERSION3 on page 13-108. For information about all available libraries, also see
Table 16-5, SRLs Available When Using VERSION1, VERSION2, and VERSION3,
on
page 16-15 and DLLs Available When Using VERSION2 and VERSION3
on
page 17-14.
Caution. All modules of an application must be built using the same version of the
Standard C++ Library dialect. The native linkers and the NonStop operating system
perform version checking. Attempting to mix versions will yield an error or a
warning at link time, and a run-time error at load time.