L

Option Type Default Value #pragma options C C++
-flag See below. - x x

Syntax

    -Ldirectory 

Purpose
Searches the path directory for library files specified by the -lkey option.

Notes
If the -Ldirectory option is specified both in the configuration file and on the command line, the paths specified in the configuration file are searched first.

Default
The default is to search only the standard directories.

Example
To compile myprogram.c so that the directory /usr/tmp/old is searched for the library libspfiles.a, enter:

xlC myprogram.c -lspfiles -L/usr/tmp/old


List of Compiler Options and Their Defaults
Options that Specify Linkage Options