When writing
#define TIXML_USE_STL
#include <tinyxml.h>
The the gnu c++ 4.0 complains that it cannot find
1. Element::Element(std::string &)
2. Node::Operator<<
The problem is solved by putting the #define TIXML_USE_STL inside
tinyxml.h (as noted in some posts from 2003). Of course, it would be much nicer not to have to tweak the
tinyxml.h. Anyone have any ideas on why the first way fails?
Many thanks,
Kirill Titievsky
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The TIXML_USE_STL macro is used in the .cpp file, so your header and your .cpp file are out of sync. The macro needs to be defined in the build settings if you don't want to change the header file.
lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
When writing
#define TIXML_USE_STL
#include <tinyxml.h>
The the gnu c++ 4.0 complains that it cannot find
1. Element::Element(std::string &)
2. Node::Operator<<
The problem is solved by putting the #define TIXML_USE_STL inside
tinyxml.h (as noted in some posts from 2003). Of course, it would be much nicer not to have to tweak the
tinyxml.h. Anyone have any ideas on why the first way fails?
Many thanks,
Kirill Titievsky
Kirill --
The TIXML_USE_STL macro is used in the .cpp file, so your header and your .cpp file are out of sync. The macro needs to be defined in the build settings if you don't want to change the header file.
lee