And hi again,
-DXML_USE_NAMESPACE breaks everything again. There are a ton of error messages once it is used on GCC 4.3.3.
The error is quite hard to spot, but very easy to fix:
The problem is that first the namespace is opened and afterwards headers are included.
namespace XMLPP {
#include <something>
}
This means that all the functions declared in something are also searched for in the namespace XMLPP.
I had to refactor the code a bit and move the includes in front of the namespace declaration. In this process I also replaced the deprecated C headers against their C++ counterparts.
The two diffs about the errors above and the errors in this message can be found here:
xml.cpp:
http://pastebin.com/m4edfd48exml.h:
http://pastebin.com/m2d3d5e92Best regards,
Timo