[Distutils] Compiling Python C++ extensions with MingW

M.-A. Lemburg mal@lemburg.com
Wed Dec 11 16:43:01 2002


David Abrahams wrote:
> "M.-A. Lemburg" <mal@lemburg.com> writes:
> 
> 
>>>ap.cxx: undefined reference to `__gxx_personalit
>>>y_v0'
>>>dllwrap: gcc exited with status 1
>>>error: command 'dllwrap' failed with exit status 1
>>
>>Looks like some lib is missing. Hard to tell which without
>>a working MinGW installed :-)
> 
> 
> That's not just "some lib", but a part of the C++ runtime. It may be
> as simple as setting LD_LIBRARY_PATH to include the location of the
> C++ runtimes shipped with mingw when linking.

Patches are welcome. AFAIK, nobody is supporting MinGW for distutils,
so you're on your own here.

Could be that g++ needs to be used instead of gcc for compiling
C++ code... at least that's what the CVS log suggests. The MinGW
class has gcc hard-coded...

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/