HP Fortran Programmer's Guide (September 2007)

An overview of HP Fortran
Linker
Chapter 1 15
+[no]fp_exceptions Enable [disable] floating-point exceptions. Enabling
floating-point exceptions also causes the running program to
issue a procedure traceback for runtime errors. The default is
+nofp_exceptions.
For information using this option, see “Floating-point exceptions”
on page 120.
-L
directory
Add
directory
to the front of the library search path. This
option applies only to libraries specified by the -l option (see
below). If you compile and link separately and specify -L on the
command line, you must also specify it on the link line.
For information about using this option, see “Library search
rules” on page 81.
-l
x
Link the library lib
x
.a or lib
x
.sl to the executable program.
If you compile and link separately and specify -l on the
command line, you must also specify it on the link line.
For information about using this option, see “Linking to
nondefault libraries” on page 78 and the
ld
(1) man page.
-o
outfile
Name the output file
outfile
instead of the default a.out. If
linking is suppressed (-c), this option is used instead to name
the object files.
+[no]shared Cause the output file from the linker to be marked
shared
[
unshared
]. If you compile and link separately and specify
+shared on the command line, you must also specify it on the
link line. The default is +shared.
For information about using this option, see “Creating shared
executables” on page 92.
Table 1-6 Options for controlling the Linker (Continued)
Option Function