Option Type | Default Value | #pragma options | C | C++ |
-flag | See below. | - | x | x |
Syntax
-lkey
Purpose
Searches the specified library file, libkey.so, and then
libkey.a for dynamic linking, or just libkey.a
for static linking.
Notes
The actual search path can be modified with the -Ldirectory
option. See -B, -brtl, and -bstatic,-bdynamic
for information on specifying the types of libraries
that are searched (for static or dynamic linking).
Default
The default is to search only some of the compiler run-time
libraries:
Example
To compile myprogram.c and include the Task Library, libtask.a,
and the Complex Mathematics Library, libcomplex.a,
enter:
xlC myprogram.c -ltask -lcomplex
List of Compiler Options and Their
Defaults
Options that Specify Linkage Options