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.
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>
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