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

Using the Standard C++ Library
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
5-7
Using Header Files With VERSION3
Using Header Files With VERSION3
Specify the names of the VERSION3 Standard C++ Library header files as defined in
the standard. On NonStop systems, header files have been renamed in some cases to
implement the three versions of the library, but in all cases you need only to specify the
standard names.
To use a VERSION3 header file, do not include .h (even if the standard name contains
.h).
For example, you can specify:
#include <new>
But you cannot specify:
#include <new.h>
Logic has been built into the header files to redirect your calls to the version of the
library you are using. For example, if you are using VERSION2 and you specify:
#include <exception>
logic in the header files redirects you to the VERSION2 header file, which is actually
named EXCEPTION2 (OSS and Windows) or EXCEPTI2 (Guardian). You can see
these alternate header file names in your program listing, but your include command
should specify only the standard name, such as exception in this example.
Installation Notes for VERSION2
The Standard C++ Library is delivered on the site update tape (SUT) for a NonStop
system. On the PC, the Standard C++ Library is installed with the HP Enterprise Toolkit
(ETK) or the Tandem Development Suite (TDS). No installation is required by the user.
Table 5-3 summarizes where the parts of the VERSION2 Standard C++ Library are
installed in the different environments (Guardian environment, OSS environment, and
PC running Windows).