Thanks for the reply. > What version of Lucene are you using ?
I checked out from pylucene svn trunk, it's 4.0 Other info: latest ArchLinux 3.1.0-4-ARCH openjdk6 6.b22_1.10.4-1 gcc: 4.6.2 python: 2.6.7 jcc 2.11 ant 1.8.2-2 NO_SHARED Shall I use lucene 3.x ? > Yes, add mutable to the reserved word list by adding --reserved mutable to > the jcc command line. Tried. It didn't help. I think the point is we need to make 'mutable' *not* a reserved word, so that the compiler does not complain. On Mon, Nov 14, 2011 at 2:20 AM, Andi Vajda <va...@apache.org> wrote: > > 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 >