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

I can't compile Fortran 90 programs...

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

I can't compile Fortran 90 programs...

Postby moudi » Wed Apr 23, 2008 9:30 am

Hi,

I have some problems with ScaLAPACK. I can compile and link (mpif77) all the test programs and everything works fine. But if I want to compile and link a Fortran 90 program, it fails:

[...]: In function 'MAIN_':
: undefined reference to 'blacs_get_'
[...]
*[...]: In function 'pxerbla_':
: undefined reference to 's_wsfe'
etc.

I think this is a problem from the compilers: g77 (GNU gcc) <-> f90 (Sun Studio). If I take the g95-compiler, it fails too (at *):

[...]: In function 'pxerbla_':
: undefined reference to 's_wsfe'
etc.

Any suggestions how I can solve it? Or is this a bug:
http://www.hku.hk/cc/sp2/software/mpi/R ... pif90.html
http://www.theochem.rub.de/~axel.kohlme ... linux.html ?

I have already changed CDEFS from -Df77IsF2C to -Add_, but nothing changed. What can I do? Can anybody help?
moudi
 
Posts: 2
Joined: Wed Apr 16, 2008 11:45 am

Postby Julie » Fri Apr 25, 2008 1:37 pm

moudi,
For : undefined reference to 's_wsfe'
Look like you are missing the f2c library in the link command.
For : undefined reference to 'blacs_get_'
You are missing the some BLACS libraries in the link command.
If you have any further problems, please copy your compilation and linking command.
Hope it helps
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 6 guests