[python-win32] Building extensions with non-MSVC compilers

Mauro Cicognini mcicogni at libero.it
Mon Nov 8 23:07:37 CET 2004


Hi guys, thanks to everybody for your kind answers, especially David 
Rushby and Paul Moore who really set me on the right track.

The extension compiles fine with minimal effort (I just had to find out 
how to hack my way around mingw :-) and seems to be working, although I 
can't test the SSL communication for lack of an LDAPS server. If 
anybody's interested, the Python-LDAP site on Sourceforge 
(http://python-ldap.sourceforge.net/) does have links to download the 
binaries.

BTW, one of the pages I read stated that the current release of mingw32 
does all the necessary magic by itself with the import library, and it's 
true. All I had to do was put python23.dll right next to the MSVC import 
library python32.lib (in c:\python23\libs, in my case). I checked using 
the "traditional" way (running pexport, generating .a, etc.) and results 
are the same, just easier :-)

All the best,
Mauro




More information about the Python-win32 mailing list