The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Linking lapack with my f77 code

Open discussion regarding features, bugs, issues, vendors, etc.

Linking lapack with my f77 code

Postby Zahra » Sun Jun 22, 2008 2:20 pm

Hi all,

I should use subroutine ZGEEV in my code. But, while I am trying to compile my code

f77 -o result my-code.f -L/usr/lib -llapack -lblas

I got the following error :(

/tmp/cc4nQ0va.o(.text+0x152f): In function `MAIN__':
: undefined reference to `cmplex_'
collect2: ld returned 1 exit status

I am a complete newbie at using libraries. Can anyone help me?

Cheers,
Zahra
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm

Postby Julien Langou » Mon Jun 23, 2008 11:47 am

Your LAPACK or BLAS libraries may come from CLAPACK or CBLAS, in
which case you need additional f2c libraries.
Since you have a f77 compiler, the easiest for you is to download
and install LAPACK yourself with your f77 compiler then your compile
line should work.
Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby Zahra » Tue Jun 24, 2008 1:38 pm

Thanks for the reply :)
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 8 guests