Extension with MinGW

John Machin sjmachin at lexicon.net
Mon Dec 9 16:15:56 EST 2002


andrew.gregory at npl.co.uk (Andrew Gregory) wrote in message news:<2830c89c.0212090238.78eb879c at posting.google.com>...
 
> To create libpython22.a I used
> c:\dev-cpp\bin\dlltool --dllname C:\python22.dll --def python22.def
> --output-lib libpython22.a
> 
> but should have copied python22.dll to the current working directory
> and used
> c:\dev-cpp\bin\dlltool --dllname python22.dll --def python22.def
> --output-lib libpython22.a
> 
> It's as simple (and frustrating) as that!

My recollection is that it is NOT necessary to copy the named DLL to
the current working directory; the purpose of the --dllname argument
is merely to specify the name to be placed in the output file, and the
named DLL is not accessed by dlltool.



More information about the Python-list mailing list