ld Manual

ld Options
ld Manual529650.001
2-14
-l or -lib
(marked as defined). The same merge might resolve other undefined symbols or result
in more undefined symbols.
These flags can be specified as many times as needed in the command stream.
Providing either flag overrides the current setting, so that the linker actions can be
controlled on a library-by-library basis.
-l or -lib
Specifies a library or archive file to use to resolve external references from the
executable file being linked.
file name
specifies a library or archive file, either by name or (in the Guardian environment)
by map DEFINE.
-l must be lowercase. The space after the flag is optional.
A simple name is a Guardian file identifier or an OSS path name without any directory
components.
If file name is not a simple name, ld searches the specified location. See Searching
for Archives and Libraries on page 1-19 for more details.
ld searches for files specified with simple names in the options -l or -lib in
locations specified in those options, in the order specified to ld, before searching any
standard library locations. Each version of ld searches a particular set of standard
library locations. See Searching for Archives and Libraries for details.
If you specify the -nostdlib or -no_stdlib, ld does not search standard library locations.
Other flags affect how file name is used. See Searching for Archives and Libraries
on page 1-19 for details.
-L or -libvol
Specifies a path name to search for a library or archive file specified by a simple file
name in -l or -lib. A simple file name is a Guardian file identifier or an OSS path name
without any directory components.
path name
is the location to search. For the Guardian version of ld, path name is a
Guardian subvolume. For the OSS version of ld, path name is an OSS directory
-l[ib][ ]file name
{ -L | -libvol }[ ]path name