Dear all,<br>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:<br><br> --------------------------------------------------------------------------------
<br>echo off<br>rem ******DIRECTORIES******<br>set G95=c:\MinGW<br>set mpichi=C:\MPICH2\include<br>set mpichl=C:\MPICH2\lib<br>rem *****************************<br><br>g95 main.f95 -o main.exe -I %mpichi% -I %mpichl% %mpichl%\libmpi.a
<br> --------------------------------------------------------------------------------<br><br>But ended with the following errors:<br><br> --------------------------------------------------------------------------------<br>
D:\hng\work\mpi>echo off<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.text+0x14): undefined refer<br>ence to `mpi_init__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.text+0x80): undefined refer
<br>ence to `mpi_finalize__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x0): undefined refere<br>nce to `mpi_comm_dup_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x4): undefined refere
<br>nce to `mpi_comm_null_delete_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x8): undefined refere<br>nce to `mpi_comm_null_copy_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:
(.data+0xc): undefined refere<br>nce to `mpi_dup_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x10): undefined refer<br>ence to `mpi_conversion_fn_null__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x14): undefined refer<br>ence to `mpi_null_delete_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x18): undefined refer<br>ence to `mpi_null_copy_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x1c): undefined refer<br>ence to `mpi_type_dup_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x20): undefined refer<br>ence to `mpi_type_null_copy_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x24): undefined refer<br>ence to `mpi_type_null_delete_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x28): undefined refer<br>ence to `mpi_win_null_copy_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x2c): undefined refer<br>ence to `mpi_win_dup_fn__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x30): undefined refer<br>ence to `mpi_wtime__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x34): undefined refer<br>ence to `pmpi_wtime__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x38): undefined refer<br>ence to `pmpi_wtick__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:
main.f95:(.data+0x3c): undefined refer<br>ence to `mpi_wtick__'<br>C:\DOCUME~1\work\LOCALS~1\Temp/cc4K6aun.o:main.f95:(.data+0x40): undefined refer<br>ence to `mpi_win_null_delete_fn__'<br> --------------------------------------------------------------------------------
<br><br>I would greatly appreciate your any help/suggestions.<br><br>Sincerely,<br>Hom Nath Gharti<br>