Tiago de Paula Peixoto schrieb:
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x465): undefined reference to `__cxa_get_exception_ptr'
Anyone knows, what's going wrong here?
Do you know if expat was compiled with a C++ compiler? Eg. g++ instead of gcc? It looks like that may be the problem.
Well, I compiled it myself and installed it in my user dir. CC is gcc, that should be a C compiler ... But honestly, I don't get it. Why should libexpat provide the symbol `__cxa_get_exception_ptr' if compiled with a C compiler. I just looked at libexpat.a with mc - all the names exported look nice and unmangled. Shouldn't there a name mangling be in place if compiled as C++?