I get a big set of errors if I try to use stream libraries. For example, stringstreams. I tried to do something like
I get errors likeCode:std::basic_stringstream<TCHAR> ss; ss << port;
This seems unrelated to my earlier problem, and is confusing.Code:/bits/basic_ios.h: At global scope: /bits/basic_ios.h: In instantiation of `std::basic_ios<TCHAR, std::char_traits<wchar_t> >': /istream:60: instantiated from `std::basic_istream<TCHAR, std::char_traits<wchar_t> >' /istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >' /sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /bits/basic_ios.h:67: error: no type named `pos_type' in `struct std::char_traits<wchar_t>' /istream: In instantiation of `std::basic_istream<TCHAR, std::char_traits<wchar_t> >': /istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >' /sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /istream:65: error: notype named `pos_type' in `struct std::char_traits<wchar_t>' /bits/istream.tcc:847:error: no type named `pos_type' in `class std::basic_istream<TCHAR, std::char_traits<wchar_t> >' /bits/istream.tcc:865:error: no type named `pos_type' in `struct std::char_traits<wchar_t>' /ostream: In instantiation of `std::basic_ostream<TCHAR, std::char_traits<wchar_t> >': /istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >' /sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /ostream:64: error: notype named `pos_type' in `struct std::char_traits<wchar_t>' /bits/ostream.tcc:404:error: no type named `pos_type' in `class std::basic_ostream<TCHAR, std::char_traits<wchar_t> >' /bits/ostream.tcc:420:error: no type named `pos_type' in `struct std::char_traits<wchar_t>' /istream: In instantiation of `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >': /sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /istream:713: error: no type named `pos_type' in `struct std::char_traits<wchar_t>' /sstream: In instantiation of `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >':socketry.cpp:19: instantiated from here /sstream:547: error: no type named `pos_type' in `struct std::char_traits<wchar_t>' /streambuf: In instantiation of `std::basic_streambuf<TCHAR, std::char_traits<wchar_t> >': /sstream:64: instantiated from `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >' /sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /streambuf:135: error:no type named `pos_type' in `struct std::char_traits<wchar_t>' /streambuf:234: error:no type named `pos_type' in `struct std::char_traits<wchar_t>' /streambuf:239: error:no type named `pos_type' in `struct std::char_traits<wchar_t>' /streambuf:574: error:no type named `pos_type' in `struct std::char_traits<wchar_t>' /streambuf:586: error:no type named `pos_type' in `struct std::char_traits<wchar_t>' /sstream: In instantiation of `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >': /sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /sstream:73: error: notype named `pos_type' in `struct std::char_traits<wchar_t>' /bits/sstream.tcc: In instantiation of `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >': /sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'socketry.cpp:19: instantiated from here /bits/sstream.tcc:136:error: no type named `pos_type' in `class std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >' /bits/sstream.tcc:182:error: no type named `pos_type' in `class std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'



LinkBack URL
About LinkBacks



CornedBee