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

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-110
VERSION3
In the G06.20 RVU, all the native C++ header files were combined into one product
number. These headers were modified to identify the version used in the compile
and to redirect calls to the correct library.
If you include the RUNNABLE option when compiling VERSION2 on Guardian
environment (or if you do not include -c On OSS environment), the compiler
automatically links:
°
ZCPLSRL (C++ run-time library)
°
ZRWSLSRL (Standard C++ Library, VERSION2)
°
LIBCOBEY for a TNS/R program (an OBEY file that links the C run-time library
and the Common Run-Time Environment [CRE])
°
CPPINIT (non-PIC), or CPPINIT2 for CALL_SHARED (TNS/R PIC) (allows
you to override the new and delete functions)
ZCPPCDLL and ZCPP2DLL (common C++ run-time library and VERSION2-specific
C++ standard library) must be linked in for TNS/E programs by the user.
For more details about the TNS/R SRLs, see Shared Run-Time Libraries (SRLs)
on page 16-13. For more details 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 environment, or using the -
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 C
TNS/E native C and C++ compilers VERSION3 for C++
N.A. for C
VERSION3 for C++
N.A. for C