C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Using the Standard C++ Library
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
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 ETK. ETK requires
manual installation of components. The C/C++ cross-compiler installers, which are part
of the ETK product family installs the standard C/C++ library.
Table 5-3 on page 5-8 summarizes where the parts of the VERSION2 Standard C++
Library are installed in the different environments (Guardian environment, OSS
environment, and PC running Windows).
PC running
Windows and
ETK release
3.0 or later
C:\Program Files\Compaq
ETK-NSE\rel\usr\include
where rel is the release
identifier, such as H06.02
C:\Program Files\Compaq ETK-
NSE\rel\usr\lib
where rel is the release identifier,
such as H06.01
Table 5-2. Installation Details for Standard C++ Library ISO/IEC
(VERSION3) (page 2 of 2)
Environment Location of Headers Location of Libraries