Chapter 6 Using Linker
104 Command Options
Functional description
This option specifies a directory that contains library files.
Library files following the L option specification will be searched for in the specified directory. First,
the current directory is searched. And then, the specified directory is searched. When the L option is
used multiple times, the search will be performed in the order of definition.
If any library file is not found, the linker outputs an error message to terminate operation.
Rules of use
This option is specified with the hyphen (-) option specification character, followed by the upper-case
letter 'L', then either immediately followed by the path name or a space and the path name.
ld103 -L/usr/lib -lsample.lib -sample2.lib prog1.rf prog2.rf
The files sample.lib and sample2.lib will be searched for in the directory /usr/lib.
Default specification
Library files specified by the l option will be read.
L path_name Specify a directory containing library files