CallDLL Package

Neil Hodgson nhodgson at bigpond.net.au
Thu Apr 25 20:08:27 EDT 2002


Rajat Chopra:

> I am using MinGW32 (particularly GCC and the BINUTILS package) to
> rebuild the Python library file. When I run the script to rebuild the
> library file, however,  I continuously get the error of "undefined
> reference to LoadLibraryA, FreeLibrary, GetModuleHandleA, and
> GetProcAddress functions".

   ...

   Try the -mwindows option to dllwrap. One peculiarity of the GNU linker is
that the order of libs is significant so sometimes to satisfy all
(particularly circular) dependencies you get to write things like:
dllwrap x.o -lkernel32 -lmine -lkernel32

   Neil





More information about the Python-list mailing list