Distutils and MinGW with C++

Andrew Gregory andrew.gregory at npl.co.uk
Tue Dec 10 18:59:55 EST 2002


Martin v. Löwis <martin at v.loewis.de> wrote in message news:<at5cgr$vqn$00$1 at news.t-online.com>...
> 
> Whether or not g++ is used to link extension modules is a configuration
> option determined at the time Python is built; you have to
> use --enable-cxx, and your compiler must require linking with g++, else
> linking occurs with gcc.
> 
> It appears that the MingW Python was built with gcc 2.95.2, and so you
> must use the same compiler for extensions, or rebuild Python.
> 

Thanks for the hint. I'm using the Microsoft Visual C Python Windows
binaries.
Perhaps distutils does not apply option --enable-cxx automatically. It
allows the qualifier extra_compile_args=[] to be given in the setup.py
file. Tomorrow, I'll try passing --enable-cxx and see what happens.

Andrew.



More information about the Python-list mailing list