[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Compaq Fortran, blas and lapack



I tried to compile a program using one of LAPACK routines with Compaq
Fortran compiler, and get the following problem at linking:

martonak> fort -ocorel.x corel.f -lblas -llapack
/usr/local/lib/libblas.so: undefined reference to `e_wsfe'
/usr/local/lib/libblas.so: undefined reference to `z_abs'
/usr/local/lib/liblapack.so: undefined reference to `c_sqrt'
/usr/local/lib/liblapack.so: undefined reference to `s_cmp'
/usr/local/lib/liblapack.so: undefined reference to `r_lg10'
/usr/local/lib/liblapack.so: undefined reference to `z_exp'
/usr/local/lib/liblapack.so: undefined reference to `c_exp'
/usr/local/lib/libblas.so: undefined reference to `c_div'
/usr/local/lib/libblas.so: undefined reference to `do_fio'
/usr/local/lib/liblapack.so: undefined reference to `pow_dd'
/usr/local/lib/liblapack.so: undefined reference to `z_sqrt'
/usr/local/lib/liblapack.so: undefined reference to `s_cat'
/usr/local/lib/libblas.so: undefined reference to `s_stop'
/usr/local/lib/libblas.so: undefined reference to `c_abs'
/usr/local/lib/liblapack.so: undefined reference to `d_lg10'
/usr/local/lib/libblas.so: undefined reference to `z_div'
/usr/local/lib/libblas.so: undefined reference to `s_wsfe'
/usr/local/lib/liblapack.so: undefined reference to `s_copy'
collect2: ld returned 1 exit status
fort: Severe: Failed while trying to link.

When I use g77, it links allright. My lapack and blas libraries have been
compiled from sources at neuro.uni-oldenburg.de for use with cpml. Can one
link against these libraries using Compaq Fortran, or do they also have to 
be recompiled with Compaq Fortran instead of g77 ? Or is it just necessary
to use some special compiler switches to link against libraries compiled
by a different compiler ?

	Thanks in advance,
				Roman Martonak.
-- 
Roman Martonak
Max-Planck-Institut fuer Festkoerperforschung
Heisenbergstrasse 1
D-70569 Stuttgart
Germany

Phone: + 49 711 6891756
Fax: + 49 711 6891702

e-mail: martonak@prr.mpi-stuttgart.mpg.de



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []