Accessing VECLIB

–aarchive_shared,−L/opt/mlib/lib/[hpux32hpux64] For example:

setenv LDOPTS “–aarchive_shared,–L/opt/mlib/lib/hpux32”

Then use the −lveclib option on the compiler command line that links your program:

f90 [options] file ...

−lveclib

cc [options] file ...

−lveclib −lcl −lm

aCC [options] file ...

−lveclib −lcl −lm

NOTE

An LDOPTS specification takes precedence over using -Wlon the

 

compiler command line. That is, if you use the LDOPTS environment

 

variable to specify a library path, you cannot override that specification

 

with a -Wloption on your compiler command line.

 

 

5.To link with the VECLIB8 libraries on an HP-UX system, use the +DD64 option to specify memory addresses are 64-bit.

Compile Fortran applications with the +i8, +autodbl, or +autodbl4 option where:

•+i8 promotes 4-byte integer of logical constants, intrinsics, and user variables (declared as integer or logical) to 8-byte quantities.

•+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 +DD64 +i8 [options] file ... −Wl,–aarchive_shared −lveclib8

cc+DD64 [options] file ... −Wl,–aarchive_shared −lveclib8 −lcl −lm aCC +DD64 [options] file ... −Wl,–aarchive_shared −lveclib8 −lcl −lm

For Itanium-Based Red Hat Linux Systems

1.To link a program that uses VECLIB for use on the same machine, use one of the following commands:

ifort [options] file ... –Wl,–Bstatic −lveclib −openmp icc [options] file ... –Wl,–Bstatic −lveclib −openmp

Link with -Bdynamicif you want the archive library on a linux system.

Chapter 1 Introduction to VECLIB 9