[Distutils] Building extensions with mingw

M.-A. Lemburg mal@lemburg.com
Sat Jul 14 13:14:01 2001


Paul Moore wrote:
> 
> I have ActiveState Python 2.1 (which I assume was built with MSVC), and I am
> trying to build an extension using the mingw compiler. When I try to build
> (python setup.py build -c mingw32) I get a whole load of undefined references to
> _imp__Py... symbols.
> 
> Presumably, I'm missing some sort of supporting import library to tell mingw
> about Python - the question is, how do I get one? Or am I being naive in
> assuming that I can use mingw to build extensions for a Python built with MSVC?
> 
> Any suggestions would be gratefully accepted...

No idea about mingw, but have you tried pointing it at the 
python21.lib in the libs/ subdir of the Python installation 
(perhaps distutils cannot find it) ?

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/