<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'lucida console', sans-serif;font-size:12pt;color:#000000;"><div></div><div><span class="Apple-style-span" style="font-family: 宋体, simsun, serif; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="lucida console, sans-serif">Hello, I have installed GCC & MPICH2-1.2.1p1 for windows, it works well with c/C++</font></div></span></div><div>but I can't compile my fortran file with mpi. and I use this command:</div><div>-------</div><div><font class="Apple-style-span" face="sans-serif"><i><span class="Apple-style-span" style="font-family: 'lucida console', sans-serif; ">gfortran -I D:\MPICH2\include -L D:\MPICH2\lib $(FileName) -o $(FileNameNoExt) -lmpi</span></i></font></div><div><font class="Apple-style-span" face="sans-serif"><i><span class="Apple-style-span" style="font-family: 'lucida
console', sans-serif; ">------------------</span></i></font></div><div>and in the folder "<span class="Apple-style-span" style="font-family: sans-serif; "><i><span class="Apple-style-span" style="font-family: 'lucida console', sans-serif; ">D:\MPICH2\include", <span class="Apple-style-span" style="font-style: normal;">it contains mpi.mod file.</span></span></i></span></div><div><span class="Apple-style-span" style="font-family: sans-serif; "><i><span class="Apple-style-span" style="font-family: 'lucida console', sans-serif; "></span></i></span>but I got the following error:</div><div>-----</div><div><div>hello.F90:2.36:</div><div><br></div><div> use mpi </div><div> 1</div><div>Fatal Error: File 'mpi.mod' opened at (1) is not a GFORTRAN module file</div><div>gfortran.exe: Internal error: Aborted (program f951)</div><div>Please submit a full bug report.</div><div><span>See <<a target="_blank"
href="http://gcc.gnu.org/bugs.html">http://gcc.gnu.org/bugs.html</a>> for instructions.</span></div><div>请按任意键继续. . .</div></div><div>------------------</div><div>my gfortran version is :</div><div>--</div><div><div><div>D:\GCC\bin>gfortran -v</div><div><span>Built by Equation Solution <<a target="_blank" href="http://www.Equation.com">http://www.Equation.com</a>>.</span></div><div>Using built-in specs.</div><div>COLLECT_GCC=gfortran</div><div>COLLECT_LTO_WRAPPER=d:/gcc/bin/../libexec/gcc/i686-pc-mingw32/4.5.1/lto-wrapper.</div><div>exe</div><div>Target: i686-pc-mingw32</div><div>Thread model: win32</div><div>gcc version 4.5.1 (GCC)</div><div><br></div><div>D:\GCC\bin></div></div></div><div><br></div><div>-----</div><div>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?</div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><font size="2" face="幼圆">------</font><font size="2" face="幼圆">---------------------------------------------</font></div><div><font style="FONT-FAMILY:tahoma, new york, times, serif;FONT-WEIGHT:bold;" size="2" face="幼圆">孔涛</font><font style="FONT-FAMILY:arial, helvetica, sans-serif;" size="2"> </font><font size="2" face="bookman old style, new york, times, serif"> 山东大学数学学院</font></div><div><font size="2"><em>Mobile:</em>13688635846 <em>Phone:</em>0531-88369020 QQ:584219201</font></div><div><br></div><div style="position:fixed"></div>
</div><br>
</body></html>