"Re: Boost, HP-UX and gcc"

I'm on 11.23 itanium using gcc 4.1.1 and the latest build of 1.35 beta
(feb 21)
With my setup, c++config,h indicates that the header wchar.h does exist,
however gcc does *not* set _GLIBCPP_USE_WCHAR_T nor_GLIBCXX_USE_WCHAR_T.
My build keeps throwing No WCHAR_MIN and WCHAR_MAX errors, and suggests
that I adjust integer_traits<>.
I was going to just let it slide but unfortunately I received this error
while trying to build using the Unit Test framework. Since unit testing
is my friend, I would really like to get this working.
I tried a work-around from the boost mailing list, but the code that I
found in my files was not quite like what he modified:
*****
Added code at top of
bad header file: #ifdef hpux #include

I don't think John's fix in http://svn.boost.org/trac/boost/changeset/42890 made
it to 1.35. You migh want to apply it locally and see if it fixes your problem.
Thanks,
Boris
----- Original Message -----
From:
I'm on 11.23 itanium using gcc 4.1.1 and the latest build of 1.35 beta (feb 21)
With my setup, c++config,h indicates that the header wchar.h does exist, however gcc does *not* set _GLIBCPP_USE_WCHAR_T nor_GLIBCXX_USE_WCHAR_T.
My build keeps throwing No WCHAR_MIN and WCHAR_MAX errors, and suggests that I adjust integer_traits<>. I was going to just let it slide but unfortunately I received this error while trying to build using the Unit Test framework. Since unit testing is my friend, I would really like to get this working.
I tried a work-around from the boost mailing list, but the code that I found in my files was not quite like what he modified:
***** Added code at top of bad header file: #ifdef hpux #include
#undef WCHAR_MIN /* (wchar_t)0 */ #define WCHAR_MIN 0 #endif * error simply changed to: /home/mlinck/develop/api/tp-sources-trunk/boost_1_33_1/boost/regex/v4/regex_traits_defaults.hpp:94:28: error: missing binary operator before token "(" * tried a different workaround at the code where the error is thrown. Noticed that broken code gets skipped for HP_aCC compiler. Figure we can maybe get away with same for gcc compiler: => #if !defined HP_aCC && !defined hpux * seems to compile. Had to apply to boost/regex/v4/perl_matcher.hpp as well ******
How would I modify integer_traits<> ? Since that is what is suggested......
Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Boris Gubenko wrote:
I don't think John's fix in http://svn.boost.org/trac/boost/changeset/42890 made it to 1.35. You migh want to apply it locally and see if it fixes your problem.
I don't believe that would help here, since his GCC build appears to be configured without stdlib wide character support anyway. As far as integer.hpp is concerned it's looking for WCHAR_MAX and WCHAR_MIN but these aren't defined.... so either define them - or even better - include the header that defines them if there is one. All patches gratefully accepted yours, John.
participants (3)
-
Boris Gubenko
-
John Maddock
-
stacie@dcindigos.com