Am 18.04.2013 19:08, schrieb Andi Vajda:
> 
> On Thu, 18 Apr 2013, Thomas Koch wrote:
> 
>> Andi,
>> I now get a different error while compiling __init__.cpp:
>>
>> org/apache/lucene/util/automaton/CompiledAutomaton$AUTOMATON_TYPE.h(42) :
>> error C2059: Syntaxfehler: 'Zeichenfolge'
>> org/apache/lucene/util/automaton/CompiledAutomaton$AUTOMATON_TYPE.h(42) :
>> error C2238: Unerwartete(s) Token vor ';'
>>
>> The line complained about is #42
>>
>> 40            static CompiledAutomaton$AUTOMATON_TYPE *NONE;
>> 41            static CompiledAutomaton$AUTOMATON_TYPE *NORMAL;
>> 42            static CompiledAutomaton$AUTOMATON_TYPE *PREFIX;
>> 43            static CompiledAutomaton$AUTOMATON_TYPE *SINGLE;
>>
>> PREFIX seems to be another reserved word ... I could compile __init__.cpp
>> after renaming PREFIX to PREFIX1.
> 
> Instead of renaming PREFIX, could you please have JCC do it for you by
> adding it to the list of reserved words in the JCC invocation via the
> --reserved command line flag ? and rinse and repeat until all such conficts
> due to macro definitions are solved ?
> 
> Or were you able to complete the build already once PREFIX was renamed ?

I'm pretty sure the Windows build issue is caused by the PREFIX macro in
PC/pyconfig.h. I ran into the same issue a while ago. I have created a
bug report for the issue http://bugs.python.org/issue17791

Christian

Reply via email to