a complie error ?

W

William

I am using mingw and msys, there is a complier error:

c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h:
In instantiation of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >':
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:59:
instantiated from `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >'
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:420:
instantiated from `std::basic_ostringstream<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >'
c:/cpp/lib-gcc/include/log4cpp/CategoryStream.hh:123: instantiated from
here
c:/cpp/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>'
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:
In instantiation of `std::basic_ostream said:
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:420:
instantiated from `std::basic_ostringstream<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >'
c:/cpp/lib-gcc/include/log4cpp/CategoryStream.hh:123: instantiated from
here
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:64:
error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/ostream.tcc:404:
error: no type named `pos_type' in `class std::basic_ostream<wchar_t,
std::char_traits<wchar_t> >'
c:/cpp/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/ostream.tcc:420:
error: no type named `pos_type' in `struct std::char_traits<wchar_t>'

........

but when I use mingw attached by CodeBlocks, it is OK.

gcc and STL of mingw is 3.4.2, that of ClodeBlocks is 3.4.3
Is there any difference between them ?

thanks in advance !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top