Page 1 of 1

I can't compile Fortran 90 programs...

PostPosted: Wed Apr 23, 2008 9:30 am
by moudi
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?

PostPosted: Fri Apr 25, 2008 1:37 pm
by Julie
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