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 and all other directories specified by the -l option are searched for the library libspfiles.a, enter:

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


List of Batch Compiler Options and Their Defaults
Options that Specify Linkage Options
Equivalent Batch Compile-Link and Incremental Build Options