Create libpythonXY.a
   1. Download pexport (from here or 
http://starship.python.net/crew/kern...orts-0.42h.zip).
   2. Get PythonXY.dll (from \Windows\System32).
   3. Run : pexports pythonXY.dll > pythonXY.def
      This will extract all symbols from pythonXY.dll and write them into pythonXY.def.
   4. Run : dlltool --dllname pythonXY.dll --def pythonXY.def --output-lib libpythonXY.a
      This will create libpythonXY.a (dlltool is part of MinGW utilities).
   5. Copy libpythonXY.a to c:\pythonXY\libs\ (in the same directory as pythonXY.lib).
This trick should work for all Python versions, including future releases of Python. You can also use this trick to convert other libraries.
			
		
 
	
Partager