Page 1 of 1

zgetrf_ is not found

PostPosted: Thu Nov 10, 2011 6:54 am
by balson
I compiled lapack-3.3.1 from source and I got lapack.a. When I tried to link this lib to my applicaiton, it threw an error saying "zgetrf_ is missing" Any clue here

Re: zgetrf_ is not found

PostPosted: Thu Nov 10, 2011 9:26 am
by Julien Langou
If you are calling zgetrf from fortran and use the same compiler, this is weird.
if you are calling zgetrf from C, the name of zgetrf in the lapack.a library might not be zgetrf_.
type something like: " nm lapack.a | grep -i zgetrf " and try to see what the symbol for zgetrf is, this is what you need to use in your C code
( another way is to use the lapacke wrapper , if configure correctly, it will do this automatically )