SPNU118Z September 1995 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
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 |
|