[mpich-discuss] MPICH2 libmpicxx error !!

Kong Tao hawk_kongtao at yahoo.com.cn
Thu Mar 31 12:14:45 CDT 2011


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
---
g++ -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib  $(FileName) -o 
$(FileNameNoExt)  -lmpi
---

But it failed  if I use the c++ mode, namely 
MPI::Init()/MPI::COMM_WORLD.Send(...)/MPI::DOUBLE format. This time I use the 
option 

---
g++ -I D:\MathProgF\MPICH2\include -L D:\MathProgF\MPICH2\lib  $(FileName) -o 
$(FileNameNoExt)  -lmpicxx -lmpi
---
The error is :
---
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x456): 
undefined reference to `__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x47b): 
undefined reference to `_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x4e8): 
undefined reference to  `_Unwind_SjLj_Resume'
...
...
...
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'
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'
...
...
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'
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'
...
...
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
  const*, int, MPI::Datatype const&)]+0xc): undefined reference to  
`__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
  const*, int, MPI::Datatype const&)]+0x31): undefined reference to  
`_Unwind_SjLj_Register'
...
...
---------


Can anyone tell me why? and how to solve this problem?
Many thanks, and waiting for your replay!
---
Kong Tao
School of Maths,Shandong Univ.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110401/166998a2/attachment.htm>


More information about the mpich-discuss mailing list