
while trying to compile boost i get several failure. ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_wiarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\text_woarchive.o libs\serialization\src\text_woarchive.cpp:13:2: #error "wide char i/o not suppor ted on this platform" "C:/mingw/bin/gcc" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o " bin.v2\libs\serialization\bui ld\gcc-mingw-3.4.5\release\link-static\runtime-link-static\text_woarchive.o" "li bs\serialization\src\text_woarchive.cpp" ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_woarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\xml_wgrammar.o libs\serialization\src\xml_wgrammar.cpp:14:2: #error "wide char i/o not supporte d on this platform" is their any ways for fix around this? using gcc mingw 3.4.5

Hi,
Could you please give me more details on the platform. I have built
boost TRUNK (latest from SVN) using MinGW: gcc (GCC) 3.4.5 (mingw
special) and VS.NET on XP. I have used the default build options.
However, the bjam.exe that I used was built using VS.NET, this should
not make a difference though.
-dky
On 8/15/07, chun ping wang
while trying to compile boost i get several failure.
...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_wiarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\text_woarchive.o libs\serialization\src\text_woarchive.cpp:13:2: #error "wide char i/o not suppor ted on this platform"
"C:/mingw/bin/gcc" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2\libs\serialization\bui ld\gcc-mingw-3.4.5\release\link-static\runtime-link-static\text_woarchive.o" "li bs\serialization\src\text_woarchive.cpp"
...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_woarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\xml_wgrammar.o libs\serialization\src\xml_wgrammar.cpp:14:2: #error "wide char i/o not supporte d on this platform"
is their any ways for fix around this?
using gcc mingw 3.4.5
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Dhruva Krishnamurthy Contents reflect my personal views only!

chun ping wang wrote:
is their any ways for fix around this?
using gcc mingw 3.4.5
IIRC, MinGW 3.4.5 doesn't have wchar.h, or wchar_t is not supported, which should be detected by bjam and disable all the wide char version in Boost like boost.wserialization, boost.wregex, etc. BTW, now MinGW gcc 4.2.1 technical preview is out already, which may now have wchar.h and support for the wide char stuff.

manphiz wrote:
chun ping wang wrote:
is their any ways for fix around this?
using gcc mingw 3.4.5
IIRC, MinGW 3.4.5 doesn't have wchar.h, or wchar_t is not supported, which should be detected by bjam and disable all the wide char version in Boost like boost.wserialization, boost.wregex, etc. <snipped>
Hmm, I don't have native mingw, but I have the mingw cross compiler suite under linux and it has wchar.h, and also wchar_t is referred to inside wchar.h and wctype.h . But, wchar.h and wctype.h should be part of mingw-runtime or w32api (and I have cross-compiled and installed very recent version of both as part of the cross-compile suite) rather than gcc per se. HTL

Note that there is a distinction between between support for wchar_t and wstreambuf. The former is supported by all archives. The latter is supported only by those archives compiled into the wserialization library. My experience is that gcc and mingw on windows doesn't support wstreambuf and hence doesn't support wstream. Note that in the boost testing matrix, tests with the wide char streams are failing for these compilers. This is the reason. I've managed to get the boost build system to skip the tests on the future for wide char archives. Note that this is not a boost serialization issue but one of wide streams with gcc libraries on windows. Also check out the boost tests -see config - for these compilers. you'll notice that these indicate that wide stream i/o is not supported. If this is an issue for you the best way to address is to find, make, port, or ? a wide char i/o library for gcc and windows - or use a different compiler. Robert Ramey Hin-Tak Leung wrote:
manphiz wrote:
chun ping wang wrote:
is their any ways for fix around this?
using gcc mingw 3.4.5
IIRC, MinGW 3.4.5 doesn't have wchar.h, or wchar_t is not supported, which should be detected by bjam and disable all the wide char version in Boost like boost.wserialization, boost.wregex, etc. <snipped>
Hmm, I don't have native mingw, but I have the mingw cross compiler suite under linux and it has wchar.h, and also wchar_t is referred to inside wchar.h and wctype.h . But, wchar.h and wctype.h should be part of mingw-runtime or w32api (and I have cross-compiled and installed very recent version of both as part of the cross-compile suite) rather than gcc per se.
HTL

You'd have to talk with the mingw developers.
To use gcc on windows, I use cgwin which comes with gcc. A very
good pacakge - but alas, it doesn't support wide characters either.
Robert Ramey
"chun ping wang"

on Tue Aug 14 2007, "Robert Ramey"
You'd have to talk with the mingw developers.
To use gcc on windows, I use cgwin which comes with gcc. A very good pacakge - but alas, it doesn't support wide characters either.
Robert, There are some fairly obvious questions you're not answering. For example, does this error make Boost.Serialization unusable with gcc on windows, and if not, how does one make it work?
"chun ping wang"
wrote in message news:7253f6b30708141657r61ec3f0ej7daf0a2582a1766c@mail.gmail.com... while trying to compile boost i get several failure. ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_wiarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\text_woarchive.o libs\serialization\src\text_woarchive.cpp:13:2: #error "wide char i/o not suppor ted on this platform"
"C:/mingw/bin/gcc" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2\libs\serialization\bui ld\gcc-mingw-3.4.5\release\link-static\runtime-link-static\text_woarchive.o" "li bs\serialization\src\text_woarchive.cpp"
...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\releas e\link-static\runtime-link-static\text_woarchive.o... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.5\release\link-sta tic\runtime-link-static\xml_wgrammar.o libs\serialization\src\xml_wgrammar.cpp:14:2: #error "wide char i/o not supporte d on this platform"
is their any ways for fix around this?
using gcc mingw 3.4.5
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com

David Abrahams wrote:
on Tue Aug 14 2007, "Robert Ramey"
wrote: You'd have to talk with the mingw developers.
To use gcc on windows, I use cgwin which comes with gcc. A very good pacakge - but alas, it doesn't support wide characters either.
Robert,
There are some fairly obvious questions you're not answering. For example, does this error make Boost.Serialization unusable with gcc on windows, and if not, how does one make it work?
It makes makes archives based on wide character streams unusable with the versions I've seen for gcc that work on window. Other archives work just fine. If one needs to use an archive which is based on wide character i/o (ie wstreambuf) on windows, he will have to procure such an implementation. I don't have one and I don't know where to get one. Sorry Perhaps there is a little bit of confusion in the following. All archives included in the libray support i/o wide characters and wstring. When loading/storing wide characters on normal character archives, translation between unicode and multibyte code base on the current locale is made on the fly. Thus any archive will hold any datatypes. If one wants to use some other locale for this purpose it can be tied to the stream in the normal way before he archive is created. unicode<->multi-byte translation is slightly fragile due to the requirement of picking the correct locale. But if you don't have wide character i/o available, its your only choice. Robert Ramey
participants (6)
-
chun ping wang
-
David Abrahams
-
dhruva
-
Hin-Tak Leung
-
manphiz
-
Robert Ramey