Accessing VECLIB

NOTE

When you use the Intel V8.0 C compiler to link the SOLVERS library,

 

you may require one or more of -lifcore, -lifport, or -ldl.

 

 

2.Specify the entire path of the library file on the compiler command line that links your program. For example, to link your program with VECLIB for use with 32- or 64-bit addressing on a Linux system, use one of the following:

ifort [options] file ... /opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264]/libveclib.a openmp

icc [options] file ... /opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264]/libveclib.a openmp

Replace libveclib.a with libveclib.so on your compiler command line if you want to link the shared library on a Linux system.

When you use the C compiler for linking, you may require one or more of

-1CEPCF90,-1F90,-1IEPCF90,-1PEPCF90, or -1POSF90.

3.Use the −lveclib option on the compiler command line that links your program, preceded by:

Wl,–Bstatic,L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264]

For example, the command lines in Method 2 for Linux could be written:

ifort [options] file...Wl,–Bstatic,L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264] lveclib openmp

icc [options] file ... Wl,–Bstatic,L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264] lveclib openmp

When you use the C compiler for linking, you may require one or more of

-1CEPCF90,-1F90,-1IEPCF90,-1PEPCF90, or -1POSF90.

4.Set the LDOPTS environment variable to include:

–Bstatic,L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264]

For example:

setenv LDOPTS “–Bstatic,–L/opt/mlib/lib/linux”

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

ifort [options] file ... −lveclib openmp icc [options] file ... −lveclib openmp

NOTE

An LDOPTS specification takes precedence over using -Wlon the

 

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

10HP MLIB User’s Guide