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

Table Of Contents
Compiling and Linking TNS/E Native C and C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
17-16
Linking a TNS/E Module
For more details about the linker, see these manuals:
eld Manual
rld Manual
Examples
1. The specified eld flags link a VERSION2 Guardian C++ program that uses the
Tools.h++ class libraries (ZTLH7DLL) and the Standard C++ Library (ZCPP2DLL):
> ELD $SYSTEM.SYSTEM.CCPLMAIN MYOBJ -o MYEXEC &
-l ZTLH7DLL -l ZCPPCDLL -l ZCPP2DLL -l ZCRTLDLL &
-l ZCREDLL
2. The specified eld flags link a VERSION2 OSS C program:
> ELD $SYSTEM.SYSTEM.CCPLMAIN MYOBJ -o MYEXEC &
-l ZTLH7DLL -l ZCPPCDLL -l ZCPP2DLL &
-l ZOSSHDLL -l ZCRTLDLL -l ZCREDLL &
-l ZOSSKDLL -l ZOSSFDLL -l ZSECDLL &
-l ZI18NDLL -l ZICNVDLL -l ZOSSEDLL &
-l ZINETDLL
VERSION2 C++ run-time library
and runs in the OSS
environment
-l ZCPPCDLL -l ZCPP2DLL -l ZCRTLDLL
-l ZCREDLL -l ZOSSKDLL -l ZOSSFDLL
-l ZSECDLL -l ZI18NDLL -l ZICNVDLL
-l ZOSSEDLL -l ZINETDLL -l ZOSSHDLL
VERSION2 Standard C++
Library, Tools.h++ (version 7)
and runs in the Guardian
environment
-l ZTLH7DLL -l ZCPP2DLL -l ZCPPCDLL
-l ZCRTLDLL -l ZCREDLL
VERSION2 Standard C++
Library, Tools.h++ (version 7)
and runs in the OSS
environment
-l ZTLH7DLL -l ZCPP2DLL -l ZCPPCDLL
-l ZOSSHDLL -l ZCRTLDLL -l ZCREDLL
-l ZOSSKDLL -l ZOSSFDLL -l ZSECDLL
-l ZI18NDLL -l ZICNVDLL -l ZOSSEDLL
-l ZINETDLL
VERSION3 Standard C++
Library and runs in the OSS or
Guardian environment
-l ZCPPCDLL -l ZCPP3DLL
OSS nlist() function -l ZUTILDLL and other DLLs required by the program
environment
TCP/IP socket library -l ZINETDLL and other DLLs required by the program
environment
Table 17-6. Using the Guardian eld Utility to Link DLLs (page 2 of 2)
If your program uses: You should specify these eld utility flags: