Boost logo

Boost Users :

From: christopher taylor (christopher.paul.taylor_at_[hidden])
Date: 2006-06-14 04:56:55


To the Boost-User community,

I'm not sure if this is the right forum for this type of question so
I'll probably take heat for posting this problem here...in any case,
I've been having some build errors working with boost shmem-0.93 on
winxp using mingw-3.4.2.

Documentation states that shmem should compile on this platform but,
I've discovered an interesting error with char_traits. In all shmem
streams, I have problems with the type referencing of post_type - I'm
getting this error:

error: no type named `pos_type' in `struct std::char_traits<wchar_t>'

Below is the gcc output of my build error. Any help with this is
greatly appreciated!

Chris Taylor

gcc ../../test/bufferstream_test.cpp -I/C/MinGW/include/boost-1_33_1 -L/C/MinGW/
libs -Wall -L-I/C/MinGW/include -L/C/MinGW/libs -lboost_thread-gcc-mt -I../../.
./.. -lstdc++ -o ../../bin/mingw/test_bufferstream_test.out
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf: I
n instantiation of `std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >':
../../../../boost/shmem/streams/bufferstream.hpp:56: instantiated from `boost:
:shmem::basic_bufferbuf<wchar_t, std::char_traits<wchar_t> >'
../../test/bufferstream_test.cpp:9: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:13
5: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:23
4: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:23
9: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:57
4: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:58
6: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
../../../../boost/shmem/streams/bufferstream.hpp: In instantiation of `boost::sh
mem::basic_bufferbuf<wchar_t, std::char_traits<wchar_t> >':
../../test/bufferstream_test.cpp:9: instantiated from here
../../../../boost/shmem/streams/bufferstream.hpp:60: error: no type named `pos_t
ype' in `struct std::char_traits<wchar_t>'
../../../../boost/shmem/streams/bufferstream.hpp:236: error: no type named `pos_
type' in `struct std::char_traits<wchar_t>'
../../../../boost/shmem/streams/bufferstream.hpp:301: error: no type named `pos_
type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_i
os.h: In instantiation of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >':

c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:60:
  instantiated from `std::basic_istream<wchar_t, std::char_traits<wchar_t> >'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706:
   instantiated from `std::basic_iostream<wchar_t, std::char_traits<wchar_t> >'
../../../../boost/shmem/streams/bufferstream.hpp:443: instantiated from `boost
::shmem::basic_bufferstream<wchar_t, std::char_traits<wchar_t> >'
../../test/bufferstream_test.cpp:11: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_i
os.h:67: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream: In
instantiation of `std::basic_istream<wchar_t, std::char_traits<wchar_t> >':
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706:
   instantiated from `std::basic_iostream<wchar_t, std::char_traits<wchar_t> >'
../../../../boost/shmem/streams/bufferstream.hpp:443: instantiated from `boost
::shmem::basic_bufferstream<wchar_t, std::char_traits<wchar_t> >'
../../test/bufferstream_test.cpp:11: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:65:
error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/istream
.tcc:847: error: no type named `pos_type' in `class std::basic_istream<wchar_t,
std::char_traits<wchar_t> >'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/istream
.tcc:865: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream: In
instantiation of `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >':
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706:
   instantiated from `std::basic_iostream<wchar_t, std::char_traits<wchar_t> >'
../../../../boost/shmem/streams/bufferstream.hpp:443: instantiated from `boost
::shmem::basic_bufferstream<wchar_t, std::char_traits<wchar_t> >'
../../test/bufferstream_test.cpp:11: instantiated from here
c:/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:/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:/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>'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream: In
instantiation of `std::basic_iostream<wchar_t, std::char_traits<wchar_t> >':
../../../../boost/shmem/streams/bufferstream.hpp:443: instantiated from `boost
::shmem::basic_bufferstream<wchar_t, std::char_traits<wchar_t> >'
../../test/bufferstream_test.cpp:11: instantiated from here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:713:
 error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
../../../../boost/shmem/streams/bufferstream.hpp: In instantiation of `boost::sh
mem::basic_bufferstream<wchar_t, std::char_traits<wchar_t> >':
../../test/bufferstream_test.cpp:11: instantiated from here
../../../../boost/shmem/streams/bufferstream.hpp:448: error: no type named `pos_
type' in `class std::basic_ios<wchar_t, std::char_traits<wchar_t> >'
../../../../boost/shmem/streams/bufferstream.hpp: In instantiation of `boost::sh
mem::basic_ibufferstream<wchar_t, std::char_traits<wchar_t> >':
../../test/bufferstream_test.cpp:13: instantiated from here
../../../../boost/shmem/streams/bufferstream.hpp:342: error: no type named `pos_
type' in `class std::basic_ios<wchar_t, std::char_traits<wchar_t> >'
../../../../boost/shmem/streams/bufferstream.hpp: In instantiation of `boost::sh
mem::basic_obufferstream<wchar_t, std::char_traits<wchar_t> >':
../../test/bufferstream_test.cpp:15: instantiated from here
../../../../boost/shmem/streams/bufferstream.hpp:394: error: no type named `pos_
type' in `class std::basic_ios<wchar_t, std::char_traits<wchar_t> >'
make: *** [../../bin/mingw/test_bufferstream_test.out] Error 1


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net