<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:13pt;color:#000000;">hello, everyone, I am using the minGW with mpich2 in my win7 platform, it works well with the pure c mode in a c++ file, namely MPI_Init(...)/MPI_Send(...,MPI_COMM_WORLD)/MPI_DOUBLE, and I use the following g++ option<br>---<br>g++ -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib&nbsp; $(FileName) -o $(FileNameNoExt)&nbsp; -lmpi<br>---<br><br>But it failed&nbsp; if I use the c++ mode, namely MPI::Init()/MPI::COMM_WORLD.Send(...)/MPI::DOUBLE format. This time I use the option <br>---<br>g++ -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib&nbsp; $(FileName) -o $(FileNameNoExt)&nbsp; -lmpicxx -lmpi<br>
---<br>The error is :<br>---<br><font size="2">D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x456): undefined reference to `__gxx_personality_sj0'<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x47b): undefined reference to `_Unwind_SjLj_Register'<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x4e8): undefined reference to
 `_Unwind_SjLj_Resume'<br>...<br>...<br>...<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0xc): undefined reference to `__gxx_personality_sj0'<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0x31): undefined reference to `_Unwind_SjLj_Register'<br>...<br>...<br></font><font size="2">D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0xc): undefined reference to
 `__gxx_personality_sj0'<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0x31): undefined reference to `_Unwind_SjLj_Register'<br>...<br>...<br></font><font size="2">D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
 const*, int, MPI::Datatype const&amp;)]+0xc): undefined reference to 
`__gxx_personality_sj0'<br>D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
 const*, int, MPI::Datatype const&amp;)]+0x31): undefined reference to
 `_Unwind_SjLj_Register'<br>...<br>...<br>---------<br><br></font><div>Can anyone tell me why? and how to solve this problem?<br>Many thanks, and waiting for your replay!<br></div><font size="2"><span style="font-family:tahoma, new york, times, serif;"><span style="font-family:tahoma, new york, times, serif;"></span>---<br>Kong Tao</span></font><font size="2"><br style="font-family:tahoma, new york, times, serif;"><span style="font-family:tahoma, new york, times, serif;">School of Maths,Shandong Univ.</span><br></font><div><br></div>



</div></body></html>