[Lapackpp-devel] compile problem on linux
Status: Beta
Brought to you by:
cstim
From: <mk...@wp...> - 2006-04-22 20:52:14
|
Hi, sorry to post about my ignorance on linux but I have a problem with linking the lapack/blas/atlas libraries during compilation. There it goes: g++ -shared -nostdlib /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o /usr/lib/gcc-lib/i486-linux/3.3.5/crtbeginS.o .libs/dopla.o .libs/dtimmg.o .libs/eigslv.o .libs/genmd.o .libs/laprefs.o .libs/lasvd.o .libs/lautil.o .libs/linslv.o .libs/systime.o -Wl,--whole-archive ../matrix/src/.libs/liblamatrixpp.a ../blaspp/src/.libs/libblaspp.a -Wl,--no-whole-archive -llapack.2.0 -L/usr/lib -lcblas.3.0 -lf77blas.3.0 -latlas.3.0 -L/usr/lib/gcc-lib/i486-linux/3.3.5 -L/usr/lib/gcc-lib/i486-linux/3.3.5/../../.. -lfrtbegin /usr/lib/libg2c.so -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/i486-linux/3.3.5/crtendS.o /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crtn.o -Wl,-soname -Wl,liblapackpp.so.1 -o .libs/liblapackpp.so.1.12.0 /usr/bin/ld: cannot find -llapack.2.0 collect2: ld returned 1 exit status The configure script does something like this: checking if ATLAS should be used... yes checking for ATLAS library... /usr/lib (libatlas.so.3.0) checking for f77blas library... /usr/lib (libf77blas.so.3.0) checking for cblas library... /usr/lib (libcblas.so.3.0) checking whether ATLAS is usable... yes checking for cheev_... no checking for cheev_ in -llapack... no checking for cheev_ in -llapack32... no checking for cheev_ in -llapack_rs6k... no checking for any lapack library... -llapack.2.0 I've got liblapack.so.2.0 in my /usr/lib My guess is that gcc looks only for lib*.so with -l option and doesn't see lib*.so.* Is there any way to make it right? I have Debian/GNU Linux 3.1 with gcc 3.3.5 (Debian) ---------------------------------------------------- Koncert zespołu TOOL! 24 czerwca w katowickim Spodku! http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Ftool.html&sid=733 |