On Thu, 02 Sep 2010 09:55:58 +0300 Henrik Mannerström henrik.mannerstrom@gmail.com wrote:
Hello,
On my Fedora 11, when I try to compile a program that uses BLAS the linking fails:
/usr/bin/ld: cannot find -lcblas
I have packages blas, blas-devel, atlas and atlas-devel installed. There exists a symlink for libcblas.so: /usr/lib64/atlas/libcblas.so -> ./libcblas.so.3.0 but 'ldconfig-p' does not find it, only the so.3-file: libcblas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libcblas.so.3 .
What should I do to be able to compile programs with BLAS and LAPACK? Do I need to complete the installation of the devel-packages by hand?
You need to pass the linker option -L/usr/lib64/atlas so that the linker finds the libraries.