This topic describes the options that enable you to control and customize the linking with tools and libraries and define the output of the linking process.
Note
These options are specified at compile time and have effect at the linking
time.
The following options enable you to link to various tools and libraries:
-C90 |
Link with alternate I-O library for mixed output with the C language. |
-lname |
Link with a library indicated in name. For example, -lm indicates to link with the math library. |
-Ldir |
Instructs linker to search dir for libraries. |
-posixlib |
Enable or disable linking with POSIX library. |
-Vaxlib |
Enable or disable linking with portability library. |
-Ldir |
Instruct linker to search for dir libraries. |
-ml |
Compile and link with non-thread-safe Fortran libraries. |
-mt |
Compile and link with thread-safe Fortran libraries. |
See Libraries for more information on using them.
Use the -c option to suppress linking. Entering the following command produces the object files file.o and file2.o, but does not link these files to produce an executable file.
IA-32 compiler:
prompt>ifc -c file.f file2.f
Itanium(TM) compiler:
prompt>efc -c file.f file2.f
Note
The preceding command does not link these files to produce an executable
file.