distutils on win32 with link.exe -- use dlls?

Chris Liechti cliechti at gmx.net
Tue Sep 16 15:40:29 EDT 2003


David Bolen <db3l at fitlinxx.com> wrote in news:u65jssiml.fsf at fitlinxx.com:

> John Hunter <jdhunter at ace.bsd.uchicago.edu> writes:
> 
>> Is there a macro or compile flag or other setting to inform distutils
>> to look for the DLLS of the required libraries rather than the *.lib
>> files?
> 
> Under Windows, even if your resultant binary is going to use DLLs, you
> need to link against the export libraries provided for those DLLs.
> The export libraries only contain the external entry points into the
> DLLs and a reference to the DLL, but they are still separate .lib
> files that are necessary to build code to run against the DLLs.  Thus,
> anyone who provides DLLs for other source to use should also be
> providing the matching .libs (or if you are building the DLLs from
> source, the build process should also create matching .lib files).

the current gcc in cygwin/mingw can link directly against DLLs (it creates 
the imp lib on the fly) one reason more to use free software ;-)

chris


-- 
Chris <cliechti at gmx.net>





More information about the Python-list mailing list