Menu

tinyxml.h include section - patch rfc

Andrej
2002-07-23
2002-08-07
  • Andrej

    Andrej - 2002-07-23

    There is ostream used in tinyxml.cpp:34, but it's undefined (tinyxml.cpp(34): error C2027: use of undefined type 'ostream'). Also if I'm using STL I don't need to include <string.h>. So here is a diff to tinyxml.h.
    regards,
    a.

    p.s.: I really doubt about formating of diff after post, so don't blame me too much. Thanks.

    $ cvs -d:pserver:anonymous@cvs.TinyXml.sourceforge.net:/cvsroot/tinyxml -z8 diff tinyxml.h
    Index: tinyxml.h
    ===================================================================
    RCS file: /cvsroot/tinyxml/tinyxml/tinyxml.h,v
    retrieving revision 1.30
    diff -r1.30 tinyxml.h
    37c37,39
    < #include <string.h>
    ---
    > #ifndef TIXML_USE_STL
    >       #include <string.h>
    > #endif
    54a57
    >       #include <iostream>

     
    • Lee Thomason

      Lee Thomason - 2002-08-07

      That's probably the incorrect string header. TinyXml works against the newer string header: <string> not the older <string.h>.

      Some systems do seem to be missing that file / have old STL implementations. In which case <string.h> is worth a shot.

      lee

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.