Technical data

6
Chapter 1: Compiling, Linking, and Running Programs
Figure 1-3 shows the ow of control for this link edit.
Figure 1-3 Link Editing
Both f77 and cc use the C link library by default. However, the cc driver
command does not know the names of the link libraries required by the
Fortran objects; therefore, you must specify them explicitly to the link editor
using the l option as shown in the example. The characters following l are
shorthand for link library les as shown in Table 1-1.
Table 1-1 Link Libraries
–l Link Library Contents
F77 /usr/lib/libF77.a Fortran intrinsic function library
I77 /usr/lib/libI77.a Fortran I/O library
I77_mp /usr/lib/libI77_mp.a Fortran multiprocessing I/O library
U77 /usr/lib/libU77.a Fortran IRIX interface library
isam /usr/lib/libisam.a Indexed sequential access method library
fgl /usr/lib/libfgl/a Fortran graphics library
m /usr/lib/libm.a Mathematics library
All
main.o
rest.o
C Fortran
Link Editor