<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 "editplus","mpich2-1.3.2p1-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>=======================================<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();<br> size=MPI::COMM_WORLD.Get_size();<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/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>孔涛 山东大学数学学院 250100<br>Tao KONG School of Mathematics, Shandong University<br>