distutils and mingw32

Scott David Daniels Scott.Daniels at Acm.Org
Wed Sep 22 17:33:03 EDT 2004


I'm trying to get distutils in 2.4 happy running mingw32.  I've chased
a few things down, but now I'm getting:

C:\Documents and Settings\daniels\Desktop\Py\block>\python24\python 
setup.py bui
ld_ext -cmingw32
running build_ext
building '_block' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\python24\include \
       -IC:\python24\PC -c _blockmodule.c \
       -o build\temp.win32-2.4\Release\_blockmodule.o
writing build\temp.win32-2.4\Release\_block.def
C:\MinGW\bin\gcc.exe -mno-cygwin -shared \
       -s build\temp.win32-2.4\Release\_blockmodule.o \
       build\temp.win32-2.4\Release\_block.def \
       -LC:\python24\libs -LC:\python24\PCBuild -lpython24 -lmsvcr71 \
       -o build\lib.win32-2.4\_block.pyd

build\temp.win32-2.4\Release\_blockmodule.o(.text+0x41):_blockmodule.c: 
undefined reference to `_imp__PyExc_TypeError'
build\temp.win32-2.4\Release\_blockmodule.o(.text+0x9d):_blockmodule.c: 
undefined reference to `_imp__PyExc_TypeError'

... (and so on for lots of these type constants).

I presume I am doing something wrong here, but I'm not used to what
underlying stuff is happening (why is everythin _imp__PyExc_TypeError?)
Is this a missing file to link or what?

a confused and bemused
-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list