distutils and mingw32

  • Thread starter Scott David Daniels
  • Start date
S

Scott David Daniels

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
(e-mail address removed)
 
C

Chris Liechti

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 build_ext -cmingw32 ....
undefined reference to `_imp__PyExc_TypeError'

my guess is that the import library (libpython24.a) is missing or not
correct. did you create one with pexports?

you know this one?
http://www.python.org/doc/current/inst/tweak-flags.html (bottom of the
page)

chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top