[mpich-discuss] mpi.mod is not a gfortran module file

孔涛 hawk_kongtao at yahoo.com.cn
Thu Oct 7 03:06:07 CDT 2010


Hello, I have installed GCC & MPICH2-1.2.1p1 for windows, it works well with 
c/C++
but I can't compile my fortran file with mpi. and I use this command:
-------
gfortran -I D:\MPICH2\include -L D:\MPICH2\lib $(FileName) -o $(FileNameNoExt) 
-lmpi
------------------
and in the folder "D:\MPICH2\include", it contains mpi.mod file.
but I got the following error:
-----
hello.F90:2.36:

 use mpi    
        1
Fatal Error: File 'mpi.mod' opened at (1) is not a GFORTRAN module file
gfortran.exe: Internal error: Aborted (program f951)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
请按任意键继续. . .
------------------
my gfortran version is :
--
D:\GCC\bin>gfortran -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=d:/gcc/bin/../libexec/gcc/i686-pc-mingw32/4.5.1/lto-wrapper.
exe
Target: i686-pc-mingw32
Thread model: win32
gcc version 4.5.1 (GCC)

D:\GCC\bin>

-----
what's the matter? who can help me? somebody says it may be caused by different 
versions of gfortran? and who can send me a copy of mpi.mod created by my 
version?




 
---------------------------------------------------
孔涛     山东大学数学学院
Mobile:13688635846       Phone:0531-88369020     QQ:584219201



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101007/21bf04ca/attachment.htm>


More information about the mpich-discuss mailing list