Technical data

Compiler Commands [2]
libC.a (Cray Standard C++ only)
libu.a
libm.a
libc.a
libsma.a (UNICOS/mk systems only)
libf.a
libfi.a
libsci.a
If you specify personal libraries by using the -l command line option, as in the
following example, those libraries are added to the top of the preceding list.
(The -l option is passed to the loader.)
cc -l mylib target.c
When the previous command line is issued, the loader looks for a library named
libmylib.a (following the naming convention) and adds it to the top of the list
of default libraries.
2.21.3 -L libdir (CC, cc, c89)
The -L libdir option changes the -l option algorithm to search directory libdir
before searching the default directories. If libdir does not begin with a slash (/), it
is interpreted as relative to the current working directory.
The loader searches for library files in the default directories in the following
order:
1. Site-specific and compiler release-specific library directories
2. /lib
3. /usr/lib
Note: Multiple -L options are treated cumulatively as if all libdir arguments
appeared on one -L option preceding all -l options. Therefore, do not attempt
to load functions of the same name from different libraries through the use
of alternating -L and -l options.
S217936 39