[pylucene-dev] Re: building JCC on Windows with MinGW

Andi Vajda vajda at osafoundation.org
Fri Mar 21 16:56:07 PDT 2008


On Fri, 21 Mar 2008, Bill Janssen wrote:

>> Well, it's only half the battle.  To make it usable, I still need to
>> generate a .LIB file, or a libjcc.a file containing the same things.
>> I see that the Python distribution has c:\Python24\libs\libpython24.a
>> and c:\Python24\libs\python24.lib.  I don't know which is actually
>> used when the "-lpython24" switch is passed to g++; I'm guessing it's
>> the libpython24.a file, and that I need to generate a similar libjcc.a
>> file in order to make the --shared build of PyLucene work.  MinGW
>> documentation seems to think that foo.lib and libfoo.a have the same
>> structure and content, it's just a difference in how you give them to
>> the linker.
>
> Generating these libraries is quite easy, but the mechanism is
> dependent on which compiler (gcc or msc) you are using.  I don't know
> how to check for the compiler to set the appropriate link flags.

What is your question ? I'm not sure I understand...

Andi..



More information about the pylucene-dev mailing list