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++-
> > /c_regex_traits.o...
> > gcc-C++-
> > /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:
> > 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
> macro, which doesn't make much sense :-(
> Since the code there is only really about warning suppression, you
> just replace:
> #elif !defined(__DECCXX) && !defined(__osf__) && !defined(__OSF__)
> defined(WCHAR_MIN) && (WCHAR_MIN == 0) &&
> #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
But in file "/boost/regex/v4/perl_matcher.hpp" same error is
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
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