Linking

This topic describes the options that allow you to control and customize the linking with tools and libraries and define the output of the linking process.
Option Description
-Ldirectory Instruct linker to search directory for libraries.
-lm Link with math library.
-Qoption,tool,list Passes an argument list to another program in the compilation sequence, such as the assembler or linker.

Suppressing Linking

Use the -c option to suppress linking. For example, entering the following command produces the object files file.o and file2.o:

Note

The preceding command does not link these files to produce an executable file.