HP MLIB User's Guide Vol. 2 7th Ed.

Chapter 8 Introduction to LAPACK 633
Accessing LAPACK
+autodbl promotes all integer, logical, and real items to 8 bytes, and all
double-precision and complex items to 16 bytes.
+autodbl4 promotes all integer logical, and real items to 8 bytes, and
complex items to 16 bytes. The
+autodbl4 option does not promote the
size of double-precision and double-complex items.
f90 +DA2.0W +i8 [options] file ... Wl,–aarchive_shared llapack8
cc +DA2.0W
[options] file ... Wl,–aarchive_shared llapack8 lcl lm
aCC +DA2.0W [options] file ... Wl,–aarchive_shared llapack8 lcl lm
Linking with libisamstub.a
C language codes that call Fortran77 routines from the BLAS Standard, the
sparse linear equation system, or the sparse eigenvalue system, must explicitly
link the ISAM (Indexed Sequential Access Method) stubs library into the
program. For example,
cc [options] file ... –Wl,–aarchive_shared,–L/opt/fortran/lib/libisamstub.a
llapack
lcl lm
This only applies if you are linking with the LAPACK archive library.
This option is only valid for 32-bit PA systems.
For Itanium-Based HP-UX Systems
1. To link a program that uses LAPACK for use on the same machine, use one
of the following commands:
f90 [options] file ... –Wl,–aarchive_shared llapack
cc
[options] file ... –Wl,–aarchive_shared llapack lcl lm
aCC
[options] file ... –Wl,–aarchive_shared llapack lcl lm
2. Specify the entire path of the library file on the compiler command line that
links your program. To link your program with LAPACK for use with 32- or
64-bit addressing on an HP-UX system, use one of the following:
f90 [options] file ... /opt/mlib/lib/[hpux32|hpux64]/liblapack.a
cc
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/liblapack.a lcl lm
aCC
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/liblapack.a lcl lm
Replace liblapack.a with liblapack.so on your compiler command line if you
want to link the shared library on an Itanium-based system.
3. Use the llapack option on the compiler command line that links your
program, preceded by: