Page 1 of 1

problem about linking with lapack

PostPosted: Thu Mar 23, 2006 4:21 am
by dp
Hi;
i download a prebuilt library lapack_linu.a , and i solve aa simple problems solving a simple linear equation systems , my code is named dp.f. and i put dp.f and lapack_linux.a under the same directory.
i use command
f77 dp.f lapack_linux.a
but it gives me the following error
"undefined reference to dgesv"
dgesv is a drive routine in the lapack.

show what is the reason

regards

PostPosted: Thu Mar 23, 2006 8:10 am
by themos
Your problem might be the same as here:

http://icl.cs.utk.edu/lapack-forum/view ... eda97cf527

PostPosted: Thu Mar 23, 2006 5:36 pm
by Julien Langou
Hello,
I am not sure that post will help.
dgesv should be in the lapack library
- do you use the same compiler for building lapack and comiling dp?
- try to do an 'nm lapack_linux.a | grep -i dgesv' and see what 's in there.
Julien