|
Boost-Build : |
Subject: Re: [Boost-build] boost cross compilation
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-12-17 02:14:06
On Thursday 17 December 2009 05:56:08 Souvik Ghosh wrote:
> Hello All,
>
> I would like to cross compile boost for ARM. But I am getting the following
> error. In my toolchain I am using gcc version 4.1.1. Can anybody please
> point me the cause behind this error.
>
> boost/boost/regex/v4/basic_regex.hpp:95:35: error: macro "index" requires 2
> arguments, but only 1 given
> boost/boost/regex/v4/basic_regex.hpp:100:21: error: macro "index" requires 2
> arguments, but only 1 given
> In file included from boost/boost/regex/v4/perl_matcher.hpp:574,
>
> Thanks in advance.
Does putting
#undef index
at the top of that header file improve things? It looks like something in your
compiler defines macro named 'index', and it's naturally breaking things.
- Volodya
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