分页: 1 / 1

关于mpich的一个小问题。。。

发表于 : 2008-10-16 9:46
wutflash
我现在想用fortran程序在并行机上运行,对程序DDSCAT.f进行了编译,比如
INCLUDE 'mpif.h'
以及
CALL MPI_INIT(IERR)
CALL MPI_COMM_RANK(MPI_COMM_WORLD,MYID,IERR)
CALL MPI_COMM_SIZE(MPI_COMM_WORLD,NUMPROCS,IERR)等等

编译的时候我用make 来进行,但却出现了错误提示:
In function `MAIN__':
DDSCAT.f:(.text+0x20): undefined reference to `mpi_init__'
DDSCAT.f:(.text+0x40): undefined reference to `mpi_comm_rank__'
DDSCAT.f:(.text+0x60): undefined reference to `mpi_comm_size__'
DDSCAT.f:(.text+0x465c): undefined reference to `mpi_finalize__'
DDSCAT.o:(.data+0x74): undefined reference to `mpi_dup_fn__'
DDSCAT.o:(.data+0x78): undefined reference to `mpi_null_delete_fn__'
DDSCAT.o:(.data+0x7c): undefined reference to `mpi_null_copy_fn__'

我的 电脑上刚刚安装了mpi,就是不清楚是怎么回事。。。请高手帮忙指点,非常感谢。。。。。