[Distutils] SIP/PyQt and distutils

Jeremy Sanders jeremy at jeremysanders.net
Sun Sep 27 19:19:08 CEST 2009

Zooko Wilcox-O'Hearn wrote:

> I'm not sure that you really need to explicitly invoke "g++" for
> anything nowadays.  Modern "gcc" notices that the input is C++ and
> compiles it accordingly.
> Could you be more specific about what doesn't work?

It does work, but prints out warnings:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-
prototypes -fPIC -I/helpers/src -I/usr/include/qt4/QtCore -
I/usr/include/qt4/QtGui-I/usr/include/qt4 -I/usr/include/python2.6 -
Ihelpers/src -I/usr/include/python2.6 -c helpers/src/qtloops_helpers.cpp -o 
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++

It would be nice if it didn't use invalid C++ options.

I'd like to be able to exactly specify the arguments to the compiler as Qt 
requires particular options.


jeremy at jeremysanders.net

More information about the Distutils-SIG mailing list