std library - poco compilation problem mingw - fedora10

Andrzej Horoszczak IDRA ah at idra.pl
Wed Nov 12 13:41:06 UTC 2008


Richard,

Thank you - I've able to build POCO libraries under Fedora (static
release versions)


however I have windows mingw linking problem now - and I am afraid it
might be a stupid question - 
do  I need to link anything extra under win32 ?
(the application itself is build "natively" in windows mingw host
environment, it just needs to link-in poco libraries)


The linker has a lot of unresolved symbols - all pointing to some system
library missing:




..\poco-win32/libPocoNet.a(StreamSocket.o):StreamSocket.cpp:(.text+0x34b): undefined reference to `__Unwind_SjLj_Resume'
..\poco-win32/libPocoNet.a(StreamSocket.o):StreamSocket.cpp:(.text+0x368): undefined reference to `__Unwind_SjLj_Resume'
..\poco-win32/libPocoNet.a(StreamSocket.o):StreamSocket.cpp:(.text+0x4df): undefined reference to `___gxx_personality_sj0'
..\poco-win32/libPocoNet.a(StreamSocket.o):StreamSocket.cpp:(.text+0x4f8): undefined reference to `__Unwind_SjLj_Register'
..\poco-win32/libPocoNet.a(StreamSocket.o):StreamSocket.cpp:(.text+0x54a): undefined reference to `__Unwind_SjLj_Unregister'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text+0x1248): undefined reference to `Poco::Bugcheck::nullPointer(char const*, char const*, int)'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text+0x12f3): undefined reference to `__Unwind_SjLj_Resume'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorIN4Poco3Net9IPAddressESaIS2_EED1Ev[std::vector<Poco::Net::IPAddress,std::allocator<Poco::Net::IPAddress> >::~vector()]+0xf): undefined reference to `___gxx_personality_sj0'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorIN4Poco3Net9IPAddressESaIS2_EED1Ev[std::vector<Poco::Net::IPAddress,
std::allocator<Poco::Net::IPAddress> >::~vector()]+0x28): undefined reference to `__Unwind_SjLj_Register'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorIN4Poco3Net9IPAddressESaIS2_EED1Ev[std::vector<Poco::Net::IPAddress, std::allocator<Poco::Net::IPAddress> >::~vector()]+0x80): undefined reference to `__Unwind_SjLj_Unregister'

..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorISsSaISsEEaSERKS1_[std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>::operator=(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char > >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
> const&)]+0x2f): undefined reference to `__Unwind_SjLj_Register'
..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorISsSaISsEEaSERKS1_[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>::operator=(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)]+0x16b): undefined reference to `__Unwind_SjLj_Unregister'


..\poco-win32/libPocoNet.a(HostEntry.o):HostEntry.cpp:(.text$_ZNSt6vectorIN4Poco3Net9IPAddressESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[std::vector<Poco::Net::IPAddress,
std::allocator<Poco::Net::IPAddress>>::_M_insert_aux(__gnu_cxx::__normal_iterator<Poco::Net::IPAddress*,
std::vector<Poco::Net::IPAddress, std::allocator<Poco::Net::IPAddress> > >,
Poco::Net::IPAddress const&)]+0x3b5): undefined reference to `__Unwind_SjLj_Resume'
..\poco-win32/libPocoNet.a(Socket.o):Socket.cpp:(.text+0x17): undefined reference to
`Poco::RefCountedObject::release() const'

..\poco-win32/libPocoNet.a(Socket.o):Socket.cpp:(.text+0x158): undefined reference to `Poco::Bugcheck::nullPointer(char const*, char const*, int)'


(...)


..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x40ea): undefined reference to `__Unwind_SjLj_Unregister'
..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x41a4): undefined reference to `Poco::Bugcheck::assertion(char const*, char const*, int)'

..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x46ff): undefined reference to `___gxx_personality_sj0'
..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x4718): undefined reference to `__Unwind_SjLj_Register'
..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x4770): undefined reference to `__Unwind_SjLj_Unregster'
..\poco-win32/libPocoNet.a(SocketImpl.o):SocketImpl.cpp:(.text+0x4856): undefined reference to `__Unwind_SjLj_Resume'
collect2: ld returned 1 exit status


make: *** [borg] Error 1




More information about the mingw mailing list