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

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-108
VERSION3
ZCPPCDLL and ZCPP2DLL (common C++ run-time library and VERSION2-specific
C++ standard library) must be linked in by the user.
For more information about the TNS/R SRLs, see Shared Run-Time Libraries
(SRLs) on page 16-13. For more information about the TNS/E DLLs, see Dynamic-
Link Libraries (DLLs) on page 17-13.
VERSION3
The VERSION3 pragma is a command-line directive for native mode C++ that instructs
the compiler to use the features of the G06.20 dialect of the C++ language
(VERSION3). This pragma is not accepted by the TNS compilers.
The pragma default settings are:
Usage Guidelines
You can enter the VERSION3 directive on the compiler RUN command line when
specifying CPPCOMP or NMCPLUS on Guardian, or using the -Wversion3 flag
when specifying c89 in the OSS environment. You cannot enter the VERSION3
directive in the source file.
VERSION3 is the default version of the native C++ compiler for the G06.20 RVU
and for subsequent RVUs until a new version of the compiler is released.
If you specify no version directive (or if you include the VERSION3 directive) with
the G06.20 native C++ compiler, you will produce a binary that is compatible with
binaries produced by the G06.20 compiler but not the D45 compiler (VERSION2) or
any earlier compiler.
The VERSION3 directive specifies the use of the Standard C++ Library ISO/IEC
version 3, and the C++ Standard headers. VERSION3 enforces the ISO/IEC IS
14882:1998 standard for C++. The ISO C++ standard is identical to the ANSI C++
standard. The VERSION3 Standard C++ Library ISO/IEC is combined with the C++
run-time library into one public SRL (named ZSTLSRL) on G-series systems but is
VERSION3
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers VERSION3 for C++
N.A. for C
VERSION3 for C++
N.A. for C
Native c89 utility VERSION3 for C++
N.A. for C
VERSION3 for C++
N.A. for CC
TNS/E native C and C++ compilers VERSION3 for C++
N.A. for C
VERSION3 for C++
N.A. for C