LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Davide Cesari (dcesari_at_[hidden])
Date: 2003-04-03 02:01:54


On Wed, 2 Apr 2003, Liu, Junhui wrote:

> Hi,
>
> We installed Redhat8.0 and have the Lam/MPI installed. I can use the mpif77
> to compile my fortran MPI code, but when I use the Portland f90 fortran
> compiler, such as pgf90, I got messages such as
>
> my_mpi.o: In function `MAIN_':
> my_mpi.o(.text+0x38): undefined reference to `mpi_init_'

If you want to use a compiler such as pgf90, you can't use a preinstalled
Lam package but you must configure Lam sources specifying the name of your
fortran compiler and then recompile and reinstall Lam, since g77 and
pgf77/pgf90 have different conventions for external names. A workaround
may be to compile f90 programs with the pgi compiler flag
-Msecond_underscore, but I have never tested it.
        best wishes, Davide