Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran Lapack Compile Issue

Status
Not open for further replies.

takafoo

Programmer
Apr 15, 2011
12
AU

Can you please help me I can't compile using lapack libraries and I can't find anyone who can tell me how to compile.

I have blas_LINUX.a and lapack_LINUX.a and I am trying to use ifort to compile my program but I always get the below error. Please help.
In function `MAIN__':
1001.f90:(.text+0x23f2): undefined reference to `zgesv_'

These are the libraries I have in the same directory

blas_LINUX.a
lapack_LINUX.a
liblapack_LINUX.a
 
Show us your compilation/link command. I suspect you forgot to add libraries...

François Jacq
 
I'm just using ifort 1001.f90, how do I load the libraries with it?
 
Try :

Code:
ifort 1001.f90 lapack_LINUX.a blas_LINUX.a

François Jacq
 
Thanks so much, I'd been trying everything but that -l -L etc but must've missed trying it like that! Thank you!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top