On 09/02/2010 11:02 PM, Rick Stevens wrote:
On 09/02/2010 06:25 AM, Jussi Lehtola wrote:
On Thu, 02 Sep 2010 09:55:58 +0300 Henrik Mannerströmhenrik.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
You need to pass the linker option -L/usr/lib64/atlas so that the linker finds the libraries.
The OP should also check /etc/ld.so.conf.d and verify that there is an atlas-x86_64.conf file in there. If not:
# echo "/usr/lib64/atlas">/etc/ld.so.conf.d/atlas-x86_64.conf
Then, as root, run "ldconfig -v". This will remove the need to specify the "-L" option to the linker.
Thank you for your answers! Passing the directory to the linker solves the problem (I thought I already tried it). However, the file /etc/ld.so.conf.d/atlas-x86_64.conf exists and contains /usr/lib64/atlas and after 'ldconfig' it is now listed but I still need to pass the directory to the linker.
- Henrik