Compiling C++ extensions with distutils on Cygwin

George Sakkis gsakkis at rutgers.edu
Tue Jun 21 20:28:06 EDT 2005


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 ?

George




More information about the Python-list mailing list