nld and noft Manual
nld Utility
nld and noft Manual—520384-003
2-20
Determining Which SRLs Programs Require
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 /usr/lib/crtlmain.o -o myexec -l ZCRESRL
-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.
VERSION2
Standard C++
library,
Tools.h++
library
(version 7)
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
VERSION3
Standard C++
library
Either -obey /usr/lib/libc.obey
-l ZSTLSRL
COBOL run-
time libraries
Either -l ZCOBSRL -l ZCRESRL
OSS
nlist()
function
OSS -l ZUTILSRL and other SRLs required by the program
environment
TCP/IP
socket library
Either -l ZINETSRL and other SRLs required by the program
environment
Table 2-2. Using the OSS nld Utility to Link SRLs (page 2 of 2)
Library That
Program
Uses
Environment
in Which
Program
Runs nld Options to Specify