HP nld Manual page 48

Table of Contents

Advertisement

nld Utility
Table 2-2. Using the OSS nld Utility to Link SRLs (page 2 of 2)
Library That
Program
Uses
VERSION2
Standard C++
library,
Tools.h++
library
(version 7)
VERSION3
Standard C++
library
COBOL run-
time libraries
OSS
nlist()
function
TCP/IP
socket library
The OSS nld utility processes the simple names in the -l options as files within the
Guardian file system. For example, the following nld command links an OSS C++
program that uses the Tools h++ class libraries:
nld myobj.o
-l ZRWSLSRL -l ZCPLGSRL -l ZTLHGSRL
crtlmain is the C run-time library initialization object file that contains code required
by all C and C++ programs.
The value of the COMP_ROOT environment variable is added to the beginning of the
/usr/lib. By default, the value of COMP_ROOT in the OSS environment is null.
Environment
in Which
Program
Runs
nld Options to Specify
Guardian
-obey /usr/lib/libc.obey
-l ZTLHSRL -l ZRWSLSRL -l ZCPLSRL
or
-l ZTLHSRL -l ZRWSLSRL -l ZCPLSRL
-l ZCRTLSRL -l ZCRESRL
OSS
-obey /usr/lib/libc.obey
-l ZTLHSRL -l ZRWSLSRL -l ZCPLSRL
or
-l ZTLHSRL -l ZRWSLSRL -l ZCPLSRL
-l ZOSSHSRL -l ZCRTLSRL -l ZCRESRL
-l ZOSSKSRL -l ZOSSFSRL -l ZSECSRL
-l ZI18NSRL -l ZICNVSRL -l ZOSSESRL
-l ZINETSRL -l ZSTFNSRL
Either
-obey /usr/lib/libc.obey
-l ZSTLSRL
Either
-l ZCOBSRL
OSS
-l ZUTILSRL and other SRLs required by the program
environment
Either
-l ZINETSRL and other SRLs required by the program
environment
/usr/lib/crtlmain.o
nld and noft Manual—520384-003
Determining Which SRLs Programs Require
-l ZCRESRL
-o myexec -l ZCRESRL
2- 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Noft

Table of Contents