Boost logo

Boost-Build :

From: sn_pramod (sn_pramod_at_[hidden])
Date: 2005-11-13 14:19:02


--- In jamboost_at_[hidden], "John Maddock" <john_at_j...> wrote:
>
> > 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:8
7:
> > 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.
>

Thanks for the information.

Just to confirm do I need to run boost configuration script before
building regex ?

Now I have replaced the line which #elif 0. It is allowing to
compile
But in file "/boost/regex/v4/perl_matcher.hpp" same error is
coming
ERROR : "/boost/regex/v4/perl_matcher.hpp:53:28: error: missing
binary operator before token "0"" .

Do I need to replace the line with #if 0.Will it not effect any
functionality?

Thanks
Pramod

 


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