Menu

tinyxml doesn't compile with STL on vc6

2002-10-22
2003-01-26
  • olivier bucher

    olivier bucher - 2002-10-22

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

     
    • Anonymous

      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.

       
    • B Sizer

      B Sizer - 2003-01-26

      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.

       

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.