hi,
well, just as the subject says tinyxml doesn't compile with stl.
i have a win2k pc with stlport installed.
following are the kind of errors i get :
error C2027: use of undefined type 'basic_ostream<char,class _STL::char_traits<char> >'
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
error C2227: left of '->good' must point to class/struct/union
any hint ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-10-27
This must be an STLPort issue as it works fine with the standard MFC (Dinkumware?) STL library.
I'm not currently using STLPort so I can't be any more helpfull than that I'm afraid.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try simply adding #include <istream> to the top of all affected .cpp files. I believe that the Dinkumware library includes the streams when you include <string>, whereas other implementations (eg. SGI, STLPort) do not.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
well, just as the subject says tinyxml doesn't compile with stl.
i have a win2k pc with stlport installed.
following are the kind of errors i get :
error C2027: use of undefined type 'basic_ostream<char,class _STL::char_traits<char> >'
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
error C2227: left of '->good' must point to class/struct/union
any hint ??
This must be an STLPort issue as it works fine with the standard MFC (Dinkumware?) STL library.
I'm not currently using STLPort so I can't be any more helpfull than that I'm afraid.
Try simply adding #include <istream> to the top of all affected .cpp files. I believe that the Dinkumware library includes the streams when you include <string>, whereas other implementations (eg. SGI, STLPort) do not.