On Nov 13, 2011, at 2:10, Jiang Fung Wong <jiangfung.w...@jamiq.com> wrote:

> I tried to compile pylucene on ArchLinux. JCC compilation was fine.
> When I tried to make. I got this error:
> 
> In file included from
> build/_lucene/org/apace/lucene/util/mutable/MutableValueFloat.h:4:0,
> from build/_lucene/__wrap01__.cpp:17795:
> build/_lucene/org/apace/lucene/util/mutable/MutableValue.h:19:27:
> error: expected identifier before []mutable[]
> build/_lucene/org/apace/lucene/util/mutable/MutableValue.h:19:35:
> error: expected unqualified-id before []([] token
> 
> It seems that a reserved keyword 'mutable' has been used in the code.

What version of Lucene are you using ?
I haven't seen this error yet with 3.x.

> Any idea how to solve it?

Yes, add mutable to the reserved word list by adding --reserved mutable to the 
jcc command line.

> Which distro, ant version, python version, gcc version do you
> recommend, for compilation of the latest pyLucene?

distro: nothing in particular
ant: whatever works for Lucene
python: 2.x, x >= 4
gcc: whatever's current on your system

Andi..

> 
> Regards,
> WJF

Reply via email to