Boost logo

Boost :

From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2006-09-21 12:26:44


This is fixed in HP-UX 11.31 to be released in Dec. 2006.

w.cpp
------
#include <wchar.h>
WCHAR_MIN
WCHAR_MAX

bash-2.05b$ uname -r
B.11.31
bash-2.05b$ aCC -E w.cpp | tail -2
0
4294967295U
bash-2.05b$

----- Original Message -----
From: "Michael Haubenwallner" <michael.haubenwallner_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, September 21, 2006 9:31 AM
Subject: [boost] problem with WCHAR_MIN using gcc-4.1.1 on hpux11.11

> Hi,
>
> On HP-UX 11.11, there is a weird definition of WCHAR_MIN:
>
> $ grep WCHAR_MIN /usr/include/*.h
> /usr/include/wchar.h:# define WCHAR_MIN (wchar_t)0
>
> When using gcc-4.1.1 on this platform, each time WCHAR_MIN is tested by
> preprocessor-directive against zero, g++ spits:
>
> gcc-C++-action
> ../../../bin/boost/libs/regex/build/libboost_regex.a/gcc/debug/c_regex_traits.o
> In file included from ../src/c_regex_traits.cpp:29:
> <snip>/boost_1_34_0rc/boost/regex/v4/regex_traits_defaults.hpp:87:94:
> error: missing binary operator before token "0"
>
> This appears in
> boost/regex/v4/perl_matcher.hpp: line 53
> and
> boost/regex/v4/regex_traits_defaults.hpp: line 87
>
> Both of them are hidden for aCC with "#if !defined(__HP_aCC)",
> so maybe they should also be hidden for gcc on hpux ?
>
> This problem does not appear with gcc-3.4.5 because of this:
>
> gcc-3.4.5 (don't exactly know until which version) did not define
> _INCLUDE__STDC_A1_SOURCE as builtin, which enables that definition of
> WCHAR_MIN in /usr/include/wchar.h
>
> Initially I had this with 1.33.0, but it is the same for rc-1.34.0.
>
> Thanks,
> haubi
> --
> Michael Haubenwallner SALOMON Automation GmbH
> Forschung & Entwicklung A-8114 Friesach bei Graz
> mailto:michael.haubenwallner_at_[hidden] http://www.salomon.at
> No HTML/MIME please, see http://expita.com/nomime.html
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk