compiling boost shmem-0.93 on winxp with mingw-3.4.2

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

Hi Chris,
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
' Below is the gcc output of my build error. Any help with this is greatly appreciated!
This error is familiar. I had it when doing the tests and I found that
char_traits was defined for gcc:
#if defined (_GLIBCXX_USE_WCHAR_T) || defined (_GLIBCXX_USE_WSTRING)
/// 21.1.3.2 char_traits specializations
template<>
struct char_traits

Ion Gaztañaga wrote:
afraid you've found a bug in the Shmem test. Wide stream instantiations should be removed or surrounded by an #ifdef when mingw is being used.
I hope you meant to use one of: BOOST_NO_CWCHAR BOOST_NO_CWCTYPE BOOST_NO_STD_WSTREAMBUF BOOST_NO_STD_WSTRING As MinGW can support wide streams, just as long as you use STLport, or some other more complete stdlib implementation than the built in one. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

I hope you meant to use one of:
BOOST_NO_CWCHAR BOOST_NO_CWCTYPE BOOST_NO_STD_WSTREAMBUF BOOST_NO_STD_WSTRING
Thanks.
As MinGW can support wide streams, just as long as you use STLport, or some other more complete stdlib implementation than the built in one.
I've seen that there is no problem with gcc 4.1 also. Thanks for the help. Regards, Ion
participants (3)
-
christopher taylor
-
Ion Gaztañaga
-
Rene Rivera