|
Boost-Build : |
From: John Maddock (john_at_[hidden])
Date: 2005-11-13 13:39:40
> I am new to boost, I am trying compiling regex library using g++
> Version 4.0.2 on HP-UX 11i . I am getting following error
>
> ...failed gcc-C++-
> action ../../../bin/boost/libs/regex/build/libboost_regex.a/gcc/debug
> /c_regex_traits.o...
> gcc-C++-
> action ../../../bin/boost/libs/regex/build/libboost_regex.a/gcc/debug
> /cpp_regex_traits.o
> In file included
> from /tmp/pramod/boost_1_33_0/boost/regex/v4/regex_traits.hpp:35,
>
> from /tmp/pramod/boost_1_33_0/boost/regex/regex_traits.hpp:32,
> from ../src/cpp_regex_traits.cpp:22:
> /tmp/pramod/boost_1_33_0/boost/regex/v4/regex_traits_defaults.hpp:87:
> 94: error: missing binary operator before token "0"
>
> I am not sure how to resolve this error.
Judging by the error message it looks like WCHAR_MIN is defined as an empty
macro, which doesn't make much sense :-(
Since the code there is only really about warning suppression, you could
just replace:
#elif !defined(__DECCXX) && !defined(__osf__) && !defined(__OSF__) &&
defined(WCHAR_MIN) && (WCHAR_MIN == 0) &&
!defined(BOOST_NO_INTRINSIC_WCHAR_T)
With:
#elif 0
Regards, John Maddock.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk