Problems w/mingw32

kdahlhaus at yahoo.com kdahlhaus at yahoo.com
Fri Nov 10 13:24:50 EST 2000


Hello,

After creating an import lib for Python 16 via Robert Kern's notes, I'm
still having trouble compiling an extension.  It appears that the
mingw32 libs are looking to link to a WinMain.  Can anyone shed
somelight on this? Thanks!

Here's the output:

gcc -ID:\\Python16\\include  -c spammodule.c -o spammodule.o
dllwrap  --dllname spam.pyd --driver-name gcc --def spam.def -o
spam.pyd \
        spammodule.o -s --entry _DllMain at 12 --target=i386-ming32 \
        -LD:/Pylibs/mingtools  -lpython16
d:\MING-GCC-2.95.2\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2
\..\..\..\..\i386-m
ingw32msvc\lib\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain
@16'
dllwrap: gcc exited with status 1
make: *** [spam.pyd] Error 1


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list