Making a def file from python23.lib for mingw32

Seo Sanghyeon unendliche at hanmail.net
Wed Aug 6 04:05:00 EDT 2003


Travis Oliphant wrote:
> Has anyone succeeded in making a usable def file from python23.lib so
> that which can be used to compile extensions with mingw32?

I made a def file from python23.dll, not from python23.lib... After
all, that's what Python doc says.

----
C:\MinGW\home>pexports C:\WINDOWS\system32\python23.dll >python23.def

C:\MinGW\home>dlltool --dllname python23.dll --input-def python23.def
--output-lib libpython23.a

C:\MinGW\home>copy libpython23.a C:\Python23\libs\
----

Now you can compile python extensiogns with mingw32 as easy as "python
setup.py build --compiler=mingw32".

--
Seo Sanghyeon




More information about the Python-list mailing list