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

Using the Standard C++ Library
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
5-8
Examples of VERSION2 Headers
Several Standard C++ Library header files have been renamed in the VERSION2
implementation, as follows (the Guardian names, inside parentheses, are derived from
the first seven letters plus the last letter of the header file name):
Documented Name Name in VERSION2 Standard C++ Library
exception (EXCEPTIN) rwexcept (RWEXCEPT)
new (NEW) rwnew (RWNEW)
stdexcept (STDEXCET) rwstdex (RWSTDEX)
This renaming avoids conflicts between the C++ run-time header files and the Rogue
Wave Standard C++ Library header files.
If you are using the Rogue Wave Standard C++ Library (VERSION2), you should
specify the header files listed here that begin with RW (that is, RWEXCEPT instead of
EXCEPTION, RWNEW instead of NEW, and RWSTDEX instead of STDEXCEPT).
Examples of VERSION2 Headers
Specifying the header-file name new includes new.h from the C++ run-time library
in the HP implementation (not the header new in the Standard C++ Library).
#include <new>
//includes header "new,h" from C++ Run-time Library V2
(T0179)
Table 5-3. Installation Details for Rogue Wave Standard C++ Library (VERSION2)
Environment Location of Headers Location of Libraries
Guardian $SYSTEM.SYSTEM TNS/R code:
$SYSTEM.SYSnn.ZRWSLSRL
TNS/E code:
$SYSTEM.ZDLLnnn.ZRWSLDLL
OSS /usr/include The Guardian namespace:
TNS/R code:
$SYSTEM.SYSnn.ZRWSLSRL
TNS/E code:
$SYSTEM.ZDLLnnn.ZRWSLDLL
PC running
Windows
C:\tdmxdev\rel\include
where rel is the release
identifier, such as d45
C:\tdmxdev\rel\lib
where rel is the release identifier,
such as d45
Note. Regardless of the version of the library you are using, the standard header files in the
G06.23 or subsequent RVU automatically redirect calls to the appropriate header file.