On 12/17/2006 05:49 PM, Jens Müller wrote:
I'm trying to use graphml.cpp/hpp in a project.
When linking the main executable against expat-2.0.0, I get:
Link separator graphml.o: In function `graphml_reader::handle_vertex(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': graphml.cpp:(.text._ZN14graphml_reader13handle_vertexERKSs[graphml_reader::handle_vertex(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0xf5): undefined reference to `__cxa_get_exception_ptr' graphml.o: In function `graphml_reader::handle_edge(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': graphml.cpp:(.text._ZN14graphml_reader11handle_edgeERKSsS1_S1_[graphml_reader::handle_edge(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 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. -- Tiago de Paula Peixoto <tiago@forked.de>