Accessing VECLIB
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 ...
This only applies if you are linking with the VECLIB archive library.
This option is only valid for
For
1.To link a program that uses VECLIB for use on the same machine, use one of the following commands:
f90 [options] file ...
cc [options] file ...
aCC [options] file ...
2.Specify the entire path of the library file on the compiler command line that links your program. To link your program with VECLIB for use with 32- or
f90 [options] file ... /opt/mlib/lib/[hpux32hpux64]/libveclib.a
cc [options] file ... /opt/mlib/lib/[hpux32hpux64]/libveclib.a −lcl −lm
aCC [options] file ... /opt/mlib/lib/[hpux32hpux64]/libveclib.a −lcl −lm
Replace libveclib.a with libveclib.so on your compiler command line if you want to link the shared library on an
3.Use the −lveclib option on the compiler command line that links your program, preceded by:
For example, the command lines in Method 2 for
f90 [+DD32+DD64] [options]
cc[+DD32+DD64] [options] file ...
aCC [+DD32+DD64] [options] file ...
4. Set the LDOPTS environment variable to include:
8HP MLIB User’s Guide