HP MLIB for PA-RISC and Itanium2 HP-UX Version 9.5 Release Note
HP MLIB for PA-RISC and Itanium® 2 HP-UX Version 9.5 Release Note
Compatibility Information
20
Compatibility Information
Compiling and Linking
This section outlines compiling and linking information for MLIB libraries.
When you use C language:
• C language codes that call Fortran 77 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. For example,
% cc [options] file ... –Wl,–aarchive_shared,–L/opt/fortran90/lib/
libisamstub.a -lveclib -lcl -lm
This only applies if you are linking with the 32-bit PA VECLIB archive library.
HP MLIB 9.5 can be used as archive or shared libraries.
Application performance is sometimes better when archive libraries are used. However, if
small executable files are a necessity, shared libraries can be used. This section outlines
compiling and linking information for the archive and shared libraries in HP MLIB 9.5.
•Use the -aarchive_shared flag on your compiler command line to ensure that the
compiler links with archive libraries first. If the archive library is not available, then it
links with the shared library.
•Use the -ashared_archive flag to preferentially link with shared libraries. If you use
neither -aarchive_shared nor -ashared_archive, the linker defaults to shared
libraries.
The following command line examples demonstrate how to compile and link your programs
for use with MLIB libraries:
NOTE Unlike other MLIB libraries, executable files using the ScaLAPACK library
and the SuperLU_DIST library must be linked using mpif90, mpicc or mpiCC,
instead of f90, cc or aCC.
For PA-Based Systems
• To link a program that uses VECLIB, LAPACK, SOLVERS, or VMATH for use on the
same machine, use one of the following commands: