Library Options

-Ldirectory The compiler driver passes this option to the linker to specify the directory to search for libraries. There is no space between the L and the directory.

-lname The compiler driver passes this option to the linker to add a library to the link command. (This option is the lowercase letter "l".) The variable name represents the abbreviated notation for the libraries, which is generally derived by removing the lib prefix and the filename extension. For example, -lm adds the libm.a library to the link command. There is no space between l and name.

This option must follow the input source files to resolve any undefined symbols and must be ordered to resolve any undefined symbols in the specified library already defined in another library. When you list multiple -l options, the libraries are linked in command line order prepended to the default library list.

-nofloation

Set the driver to link in libnoflt.a, a special version of the ANSI library in which floating point I/O is not required. The I/O routines in this library does not contain instructions for floating point support and are much shorter.

-nostartfiles

Supresses the inclusion of crt0.o from the standard library.

-nostdlib

Do not link in the standard libraries. Do not use the standard startup file.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.