Compiling C++ extensions with distutils on Cygwin

George Sakkis gsakkis at rutgers.edu
Wed Jun 22 08:01:06 EDT 2005


"George Sakkis" wrote:

> I'm trying to build a C++ extension on Cygwin, but it fails because
> distutils invokes gcc instead of g++. Looking into distutils internals,
> it turns out that compilation is assumed to be independent of the
> target language, while linking is not (CCompiler.compile() doesn't take
> a target_lang argument but CCompiler.link() does). Is there a good
> reason for this ?

Is this a coincidence or what ? A patch for exactly this issue was
posted just five days ago (http://python.org/sf/1222585), so it should
be fixed in 2.5.

George




More information about the Python-list mailing list