Dear he,
I am not sure what is wrong here...
The only thing I see is the link is upside down, but I am not sure this even
matters...
gcc main.c -lclapack -lcblas -lf2c
What I advice you to do is
nm /usr/local/lib/libclapack.a | grep -i dgesv
This will tell you if dgesv is in the lib or not and how it has to be called.
Sometimes depending on the compiler the symbol, is just adding an underscore,
or uppercase or just the same.
Hope it helps
Julie
On Jul 14, 2010, at 12:50 AM, He Jianbo wrote:
make.inc.example -> make.inc
CC = gcc -DNO_BLAS_WRAP
after make under terminal
i got libf2c.a blas_LINUX.a lapack_LINUX.a
sudo
cp lapack_LINUX.a /usr/local/lib/libclapack.a
cp blas_LINUX.a /usr/local/lib/libcblas.a
cp F2CLIBS/libf2c.a /usr/local/lib/libf2c.a
cp INCLUDE/clapack.h /usr/local/include
cp INCLUDE/f2c.h /usr/local/include
/sbin/ldconfig
test code main.c
#include "f2c.h"
#include "clapack.h"
int
main(void)
{
...
dgesv_(&N, &nrhs, A, &lda, ipiv, b, &ldb, &info);
....
}
gcc main.c -lf2c -lcblas -lclapack
got undefined reference to 'dgesv_' error
please help, i have no idea aboue the error
thanks.
--
???
He Jianbo
_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.eecs.utk.edu/mailman/listinfo/lapack
**********************************************
Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)
julie@Domain.Removed; http://www.cs.utk.edu/~julie/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20100714/10d8ce37/attachment.html
|