Dear Jack,
Two solutions:
- Either give the whole path to the LIbrary:
gcc -g -fPIC -shared -o libyael.so matrix.o vector.o nn.o kmeans.o hkm.o
gmm.o eigs.o spectral_clustering.o sorting.o binheap.o machinedeps.o vlad.o
kmlsh.o "PATH TO THE LIBRARY"/lapack_LINUX.a "PATH TO THE
LIBRARY"/blas_LINUX.a -fopenmp
- or Change the names
blas_LINUX.a --> libblas.a
lapack_LINUX.a --> liblapack.a
gcc -g -fPIC -shared -o libyael.so matrix.o vector.o nn.o kmeans.o hkm.o
gmm.o eigs.o spectral_clustering.o sorting.o binheap.o machinedeps.o vlad.o
kmlsh.o -L "PATH TO THE LIBRARY" -llapack -lblas -fopenmp
Note: it is better to have first LAPACK then BLAS.
Hope it helps
Julie
On Dec 7, 2012, at 12:18 AM, Jack Akar <definitionoftheuniverse@Domain.Removed>
wrote:
Hello,
I am compiling BLAS and LAPACK to be used with Yael.
I got blas_LINUX.a and respective .o files after "make" BLAS successfully.
However, when I "make" Yael, it complains,
-bash-3.2$ make
cd yael; make
make[1]: Entering directory `/home/usera/mat/yael_v300src/yael'
gcc -g -fPIC -shared -o libyael.so matrix.o vector.o nn.o kmeans.o hkm.o
gmm.o eigs.o spectral_clustering.o sorting.o binheap.o machinedeps.o vlad.o
kmlsh.o -lblas -llapack -fopenmp
/usr/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status
make[1]: *** [libyael.so] Error 1
make[1]: Leaving directory `/home/usera/mat/yael_v300src/yael'
make: *** [compiledir.yael] Error 2
In this case, I see that gcc complains that it can't find -lblas. What can I
do here with the -lblas? How can I tell gcc about my blas directory?
Best Regards,
Jack
_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.eecs.utk.edu/mailman/listinfo/lapack
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20121207/009e71cd/attachment.html
|