LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Bernard Knaepen (bknaepen_at_[hidden])
Date: 2005-02-17 08:57:13


Hello,
when I try to compile and link a simple mpi io program (source code
attached) using lam 7.1.2b12 / Absoft Fortran 9.0 / OSX 10.3, I get
the following linkage error:

ld: Undefined symbols:
_MPI_FILE_CLOSE
_MPI_FILE_OPEN
/tmp/6tDeoe/fmisc.o reference to undefined _MPI_FILE_CLOSE
/tmp/6tDeoe/fmisc.o reference to undefined _MPI_FILE_OPEN
link failed.

The command I use to compile the code is:
f90 -I/Users/bknaepen/Unix/lam/include  -L/Users/bknaepen/Unix/lam/lib
-llammpio -llamf77mpi -lmpi  -llam -ldl fmisc.f90

I cannot use the mpif77 wrapper since some of the flags provided are
currently not supported by Absoft Fortran 9.0 on OSX (Absoft tech
support provided me the above workaround that works fine with non
mpi-io programs).
I don't have any trouble with mpi-io examples that are compiled using mpicc.

I copy below my laminfo output and config.log files.

Thanks for any help,

Bernard.



  • application/octet-stream attachment: laminfo


  • application/octet-stream attachment: fmisc.f90