libpython20.a for building extensions using mingw32

jay.krell at cornell.edu jay.krell at cornell.edu
Tue Oct 17 12:08:33 EDT 2000


Probably almost identical, very simple:
    ftp://home.netcom.com/users/jaykrell/MakeDef

I really ought to make it output cygwin, VC5, VC6, and Borland .libs..

 - Jay

-----Original Message-----
From: Hamish Lawson <hamish_lawson at yahoo.co.uk>
Newsgroups: comp.lang.python
To: python-list at python.org <python-list at python.org>
Date: Tuesday, October 17, 2000 3:48 AM
Subject: Re: libpython20.a for building extensions using mingw32


>I had missed the Makefile that comes with Py-mingw32-tools.zip,
>containing the necessary dlltool call that makes the .a file out of
>the .lib. Thanks, Robert, for directing me to it.
>
>> One problem you might run into is that lib2def.py won't catch all of
>> the symbols. I wrote lib2def.py as a hack that worked for 1.5.2, and
>> some important symbols in 2.0 may be left out.
>
>lib2def.py didn't seem to catch the symbols, so I ended up using the
>pexports utility that you mentioned in your notes to create the .def
>file. After that libpython20.a built successfully, and I was then able
>to build the extension module.
>
>Hamish Lawson






More information about the Python-list mailing list