[MPICH] Compiling MPI Fortran program

Hom Nath Gharti hng.email at gmail.com
Sun Jul 1 03:10:30 CDT 2007


Dear all,
I have installed recent version of g95, MinGW and MPICH2. I have a very
simple MPI Fortran program. I used the following batch file to compile the
program:

 --------------------------------------------------------------------------------
echo off
rem  ******DIRECTORIES******
set G95=c:\MinGW
set mpichi=C:\MPICH2\include
set mpichl=C:\MPICH2\lib
rem  *****************************

g95 main.f95 -o main.exe -I %mpichi% -I %mpichl% %mpichl%\libmpi.a
 --------------------------------------------------------------------------------

But ended with the following errors:

 --------------------------------------------------------------------------------
D:\hng\work\mpi>echo off
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.text+0x14): undefined
refer
ence to `mpi_init__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.text+0x80): undefined
refer
ence to `mpi_finalize__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x0): undefined
refere
nce to `mpi_comm_dup_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x4): undefined
refere
nce to `mpi_comm_null_delete_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x8): undefined
refere
nce to `mpi_comm_null_copy_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0xc): undefined
refere
nce to `mpi_dup_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x10): undefined
refer
ence to `mpi_conversion_fn_null__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x14): undefined
refer
ence to `mpi_null_delete_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x18): undefined
refer
ence to `mpi_null_copy_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x1c): undefined
refer
ence to `mpi_type_dup_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x20): undefined
refer
ence to `mpi_type_null_copy_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x24): undefined
refer
ence to `mpi_type_null_delete_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x28): undefined
refer
ence to `mpi_win_null_copy_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x2c): undefined
refer
ence to `mpi_win_dup_fn__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x30): undefined
refer
ence to `mpi_wtime__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x34): undefined
refer
ence to `pmpi_wtime__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x38): undefined
refer
ence to `pmpi_wtick__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x3c): undefined
refer
ence to `mpi_wtick__'
C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x40): undefined
refer
ence to `mpi_win_null_delete_fn__'
 --------------------------------------------------------------------------------

I would greatly appreciate your any help/suggestions.

Sincerely,
Hom Nath Gharti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20070701/a3b9f2d1/attachment.htm>


More information about the mpich-discuss mailing list