From: Bob R. <bob...@co...> - 2006-12-14 02:49:27
|
Hi, If I compile this, it fails with mingw, $ g++ --version g++.exe (GCC) 3.4.2 (mingw-special) #include <sstream> class logstream : public ::std::basic_ios<wchar_t> { public: logstream (); }; The error is, C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h: In instantiation o f `std::basic_ios<wchar_t, std::char_traits<wchar_t> >': main.cpp:3: instantiated from here C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h:67: error: no type named `pos_type' in `struct std::char_traits<wchar_t>' After looking at this error for a while, I don't think it actually is an error. Changing the wchar_t to a char above does compile. This isn't my code, so I can't easily change it. On ubuntu linux, g++ version 3.3.6, 3.4.6, 4.0.4 20060630 and 4.1.2 20060928, both wchar_t and char work in the code above. Any suggestions? Thanks, Bob Rossi |