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

Table 51 DLLs Available When Using VERSION2 and VERSION3 (continued)
VERSION 3VERSION 2
OSSGuardianOSSGuardian
OSOSOSOS
Notes: DLL names are shown without the leading Z and these DLL; therefore, CPPC represents ZCPPCDLL, and TLH7
represents ZTLH7DLL.
OS represents the HP NonStop OS.
OSS represents the Open System Services environment.
CRTL represents the C run-time library. CRE represents the common run-time environment.For other environments such
as the PC, the names are prefixed with lib and suffixed with .so; therefore, CPPC is libcppc.so.
For more details, see:
Using the Standard C++ Library
Pragmas VERSION2 (page 254) and VERSION3 (page 255)
C++ Run-Time Library and Standard C++ Library (page 34)
Additional DLLs might be required for other run-time libraries and services. For example, if you use
the VERSION2 pragma with the CPPCOMP driver in the Guardian environment (or the
-Wcplusplus and -Wversion2 flags with the c89 driver in the OSS environment), these DLLs
are automatically searched:
ZCPPCDLL (the common C++ run-time DLL)
ZCPP2DLL (the VERSION2 Standard C++ library DLL)
If, however, you invoke eld explicitly, you need to include these DLLs in the link command using
the -lib option, as shown in Table 52.
Table 52 Using the Guardian eld Utility to Link DLLs
You should specify these eld utility flags:If your program uses:
-l CRTL -l CREDC run-time library and runs in the
Guardian environment
-l CRTL -l CRE -l OSSK
-l OSSF -l SEC -l I18N
C run-time library and runs in the OSS
environment
-l ICNV -l OSSE -l INET
-l OSSH
-l CPP2 -l CPPC -l CRTL
-l CRE
VERSION2 C++ run-time library and runs
in the Guardian environment
-l CPPC -l CPP2 -l CRTL
-l CRE -l OSSK -l OSSF
VERSION2 C++ run-time library and runs
in the OSS environment
-l SEC -l I18N -l ICNV
-l OSSE -l INET -l OSSH
-l TLH7 -l CPP2 -l CPPC
-l CRTL -l CRE
VERSION2 Standard C++ Library,
Tools.h++ (version 7) and runs in the
Guardian environment
-l TLH7 -l CPP2 -l CPPC
-l OSSH -l CRTL -l CRE
VERSION2 Standard C++ Library,
Tools.h++ (version 7) and runs in the
OSS environment
-l OSSK -l OSSF -l SEC
-l I18N -l ICNV -l OSSE
-l INET
-l CPPC -l CPP3VERSION3 Standard C++ Library and
runs in the OSS or Guardian
environment
Working in the Guardian Environment 309