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.
bash-2.05b$ uname -r
bash-2.05b$ aCC -E w.cpp | tail -2
----- Original Message -----
From: "Michael Haubenwallner" <michael.haubenwallner_at_[hidden]>
Sent: Thursday, September 21, 2006 9:31 AM
Subject: [boost] problem with WCHAR_MIN using gcc-4.1.1 on hpux11.11
> 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:
> In file included from ../src/c_regex_traits.cpp:29:
> error: missing binary operator before token "0"
> This appears in
> boost/regex/v4/perl_matcher.hpp: line 53
> 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.
> 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:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk