LAPACK Archives

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

make.inc.example -> make.inc
CC        = gcc -DNO_BLAS_WRAP
<http://translate.google.cn/translate_t?q=terminal&oe=utf-8&rls=org.mozilla:zh-CN:official&client=firefox-a&um=1&ie=UTF-8&sl=en&tl=zh-CN&sa=X&ei=1Vw9TLmVC4i0vgP_n7WNDw&ved=0CCUQ_AgwAA>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20100714/aa114539/attachment.html
 

<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