<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;">Hi, everyone.<br><br>I got some problem when I set the MPICH2 with Gcc on my windows 7 system.<br><br>I
want to compile some parallel program source files written by c++ with
the GCC complier,so I installed the "editplus","mpich2-1.3.2p1-<div id=":13b"><wbr>win-ia32.exe"
and "MinGW (GCC V4.5.2)" that I download from the offical website on my
windows 7 system. I give the following compiling settings of g++ <br>
------------<br>g++ -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib $(FileName) -o $(FileNameNoExt) -lmpicxx -lmpi<br>----------<br>while I complie the following sourcefile <br>==============================<wbr>=========<br>
#include <iostream><br>#include <cmath><br>#include <mpi.h><br>using namespace std;<br><br>int main(int argc, char *argv[])<br>{<br> //begin the main function<br> int rank,size;<br> MPI::Init(argc,argv);<br>
rank=MPI::COMM_WORLD.Get_rank(<wbr>);<br> size=MPI::COMM_WORLD.Get_size(<wbr>);<br> cout<<"I am "<<rank<<" of "<<size<<endl;<br> MPI::Finalize(); <br> <br> return 0;<br>
}<br>============================<br>and I got the following information:<br>############<br>D:\MathProgF\MPICH2\lib/<wbr>libmpi.a: file not recognized: File truncated<br>collect2: ld returned 1 exit status<br>Press any key to continue......<br>
#############<br><br>Q: Can anyone tell me how to settle this problem, thank you very much! ^^<br><br>Kayneo<br><font color="#888888"><br></font></div><div> </div><div><font face="幼圆" size="2">------</font><font face="幼圆" size="2">---------------------------------------------</font></div><div><font style="FONT-FAMILY:tahoma, new york, times, serif;FONT-WEIGHT:bold;" face="幼圆" size="2">孔涛</font><font style="FONT-FAMILY:arial, helvetica, sans-serif;" size="2"> </font><font face="bookman old style, new york, times, serif" size="2"> 山东大学数学学院</font></div><div><font size="2"><em>Mobile:</em>13688635846 <em>Phone:</em>0531-88369020 QQ:584219201</font></div><div><br></div>
</div><br>
</body></html>