Chapter 6 Using Linker
Command Options 103
6.3.4 Library File Options
Functional description
This option specifies a library file.
Rules of use
This option is specified with the hyphen (-) option specification character, followed by the lower-case
letter 'l', then either immediately followed by the path name and file name or a space and the path name
and file name. The l option must be coded end of the command line.
ld103 -l /usr/lib/sample.lib main.rf sub.rf
Default specification
No library files will be read.
NOTE: The linker will search for a library file one time only in order to solve the problem
of the undefined symbols. For instance, if an undefined symbol has defined in
the former library file, the linker could never solve the problem, and a error
message will be appeared.
Be sure to specify the library file at the end of the command line of the undefined
symbol.
Object files would not limit any restriction.
l library_filename Specify a library file