SPRUI03E June 2015 – January 2023
The --search_path option names an alternate
directory that contains input files. The
--search_path option's short form is
-I
. The syntax for this option
is:
--search_path= pathname
The pathname names a directory that contains input files.
When the linker searches for files named with the --library option, it searches through directories named with --search_path first. Each --search_path option specifies only one directory, but you can use several --search_path options per invocation. If you use the --search_path option to name an alternate directory, it must precede any --library option on the command line or in a command file.
For example, assume that there are two archive libraries called r.lib and lib2.lib that reside in ld and ld2 directories. The table below shows the directories that r.lib and lib2.lib reside in, how to set environment variable, and how to use both libraries during a link. Select the row for your operating system:
Operating System | Enter |
---|---|
UNIX (Bourne shell) |
|
Windows |
|