[Distutils] Compiling Python C++ extensions with MingW

David Abrahams dave@boost-consulting.com
Wed Dec 11 16:51:24 2002

"M.-A. Lemburg" <mal@lemburg.com> writes:

> David Abrahams wrote:
>> "M.-A. Lemburg" <mal@lemburg.com> writes:
>>>>ap.cxx: undefined reference to `__gxx_personalit
>>>>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... 

Yes, that is definitely the case.

> at least that's what the CVS log suggests. The MinGW class has gcc
> hard-coded...

Easy fix, then!

                       David Abrahams
   dave@boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution