Menu

problem with #define TIXML_USE_STL

Developer
Kirill T.
2007-04-05
2013-05-20
  • Kirill T.

    Kirill T. - 2007-04-05

    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

     
    • Lee Thomason

      Lee Thomason - 2007-04-06

      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

       

Log in to post a comment.