Chris Coleman wrote:
I have installed libxml using fink's unstable tree on Mac OS X 10.4.1.
Trying to build the sample here: http://
libxmlplusplus.sourceforge.net/examples/dom_parser/main.cc
With the command line:
g++ -o cml_test -I/sw/include -L/sw/lib main.cpp -lxml++-2.6 - lglibmm-2.4
results in the following linker errors:
/usr/bin/ld: Undefined symbols:
typeinfo for xmlpp::CommentNode
typeinfo for xmlpp::ContentNode
typeinfo for xmlpp::Node
typeinfo for xmlpp::Element
typeinfo for xmlpp::TextNode
collect2: ld returned 1 exit status
If I remove the -lxml++-2.6 flag then there are even more errors. I
would have though that these symbols should be defined in libxml?
Try if using g++-3.3 instead of g++ helps. These errors are typical when
you try to link a g++-4.0-compiled binary with a library compiled with
g++-3.3. In the current 10.4-transitional tree, the c++ compiler used is
g++-3.3.
--
Martin
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users