Hello,
I am trying to use the libxml library to read and write an XML file in a C++ program.
I included these two in the .cpp file.
#include <libxml/parser.h>
#include <libxml/tree.h>
cmake generates all the object files, while at the end I have a linking error like this
Undefined symbols for architecture x86_64:
"_xmlCharStrdup", referenced from:
string_xml(_xmlNode*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in xml.cpp.o
I have upgraded all the MacPort and everything related to libxml and libxml2. But, I have still the same problem.
Does anyone has any comments?
Cheers,
M