Table 23 Libraries linked by default on Itanium (continued)
Library | Contents |
/usr/lib/hpux[3264]/libc.so | Shared library for intrinsic procedures and system |
| routines |
|
|
/opt/fortran90/lib/hpux[3264]/li bF2003.a | Archive library for Fortran 2003 standard features |
Linking to nondefault libraries
The
where xis a sequence of characters that completes a library name of the form /lib/libx.a or /usr/lib/libx.a. For
.aextension indicates an archive library. You can also link to shared libraries, which have the
.slextension; see “Linking to shared libraries” (page 53).)
The
$ f90 prog.f90
You can also link a library to your program by specifying its name after the name of the source file that references it, as follows:
$ f90 prog.f90 /usr/lib/libm.a
This form of the command line is useful for linking libraries that do not conform to the naming convention required by
$ f90 prog.f90 my_routines
If your program calls routines in a library but the linker is unable to resolve the references, compile with the
•The names of the libraries that the linker is searching. This information can confirm that the linker is searching the correct libraries.
•The names of the object files selected by the linker to resolve the references. The linker may have found the same name in another library and resolved the reference there.
Many
Linking HP Fortran 90 routines
When calling HP Fortran 90 routines on the HP 9000 Series 800, you must include the appropriate
52 Compiling and linking