473,395 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

distutils and mingw32

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):_blockmodul e.c:
undefined reference to `_imp__PyExc_TypeError'
build\temp.win32-2.4\Release\_blockmodule.o(.text+0x9d):_blockmodul e.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
Sc***********@Acm.Org
Jul 18 '05 #1
2 2842
Scott David Daniels <Sc***********@Acm.Org> wrote in
news:41********@nntp0.pdx.net:
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
--
Chris <cl******@gmx.net>

Jul 18 '05 #2
Chris Liechti wrote:
Scott David Daniels <Sc***********@Acm.Org> wrote in
news:41********@nntp0.pdx.net:

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

Thanks. I'll try that out tonight.

-Scott David Daniels
Sc***********@Acm.Org
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
0
by: Andrew Gregory | last post by:
In Python 2.2, I compiled some C++ code on Windows (MinGW compiler) to create an extension using distutils and the following setup.py file: from distutils.core import setup, Extension setup...
1
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: ...
15
by: Colin J. Williams | last post by:
The distutils download page has: -------------------------------------------------------- Current stable release The current stable release is Distutils 1.0.2; you can download it as: *...
1
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do...
0
by: Maarten Sneep | last post by:
I'm trying to build PyBison on Mac OS X, and I'm running into some problems with the distutils. Just for starters: PyBison requires Pyrex. This is not a problem, and Pyrex seems to work without...
4
by: timothy.williams | last post by:
Hello all. We don't have admin privs on our Windows boxes, but I'd like to be able to install a package built using distutils. I was able to install Python without admin, but when I tried to run...
9
by: jtravs | last post by:
Hi all, I suspect that I'm doing something stupid, I would like some other opinions though. I'm getting started with ctypes and am trying to use distutils to help build my module. At the moment...
0
by: newbie73 | last post by:
OS: Vista Python 2.5.2.2 (ActiveState Software Installation) Running latest Cygwin release The error generated is pasted below - please help. - Luis ***************************************
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.