<br><div class="gmail_quote">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&nbsp; &quot;editplus&quot;,&quot;mpich2-1.3.2p1-win-ia32.exe&quot; and &quot;MinGW (GCC V4.5.2)&quot; that I download from the offical website on my windows 7 system. I give the following compiling settings of g++ <br>

------------<br>g++&nbsp; -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib $(FileName) -o $(FileNameNoExt) -lmpicxx -lmpi<br>----------<br>while I complie the following sourcefile <br>=======================================<br>

#include &lt;iostream&gt;<br>#include &lt;cmath&gt;<br>#include &lt;mpi.h&gt;<br>using namespace std;<br><br>int main(int argc, char *argv[])<br>{<br>&nbsp;&nbsp;&nbsp; //begin the main function<br>&nbsp;&nbsp;&nbsp; int rank,size;<br>&nbsp;&nbsp;&nbsp; MPI::Init(argc,argv);<br>

&nbsp;&nbsp;&nbsp; rank=MPI::COMM_WORLD.Get_rank();<br>&nbsp;&nbsp;&nbsp; size=MPI::COMM_WORLD.Get_size();<br>&nbsp;&nbsp;&nbsp; cout&lt;&lt;&quot;I am &quot;&lt;&lt;rank&lt;&lt;&quot; of &quot;&lt;&lt;size&lt;&lt;endl;<br>&nbsp;&nbsp;&nbsp; MPI::Finalize();&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return 0;<br>

}<br>============================<br>and I got the following information:<br>############<br>D:\MathProgF\MPICH2\lib/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><br></div><br>-- <br>孔涛&nbsp; 山东大学数学学院 250100<br>Tao KONG&nbsp; School of Mathematics, Shandong University<br>