LAPACK Archives

[Lapack] I have trouble compiling clapack-3.2.1 under ubuntu 10.04

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 
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

On Jul 14, 2010, at 12:50 AM, He Jianbo wrote: ->
CC        = gcc -DNO_BLAS_WRAP
after make under terminal

i got libf2c.a blas_LINUX.a lapack_LINUX.a


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


test code main.c
#include "f2c.h"

#include "clapack.h"

    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

He Jianbo
Lapack mailing list

Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)

-------------- next part --------------
An HTML attachment was scrubbed...

<Prev in Thread] Current Thread [Next in Thread>

For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or