[PyKDE] More on GCC 2.96

Phil Thompson phil at river-bank.demon.co.uk
Wed Oct 11 15:16:40 BST 2000

Jesper Eskilson wrote:
> When compiling PyQt using 2.96, I get the following error messages:
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.0 -I/usr/local/include/sip -I/usr/local/qt-2.2.1/include -I/usr/X11R6/include -fno-exceptions -O2 -Wp,-MD,.deps/sipqtQWhatsThis.pp -c  -fPIC -DPIC sipqtQWhatsThis.cpp -o sipqtQWhatsThis.lo
> sipqtQWhatsThis.cpp: In function `PyObject *sipNew_QWhatsThis (PyObject
> *, PyObject *)':
> sipqtQWhatsThis.cpp:1020: cannot convert `sipProxy *(*) ()' to `void *'
> in initialization
> One workaround is to add an explicit cast to (void *), but there seems to
> be a lot of places where this needs to be done, and most of them are in
> automaticall generated code (by sip). I tried to hack sip to emit the
> void-cast directly, but the files above does not seem to be re-generated
> when building PyQt.

Is it invalid C++ to assign something to a void * without a cast? (I
know its invalid to do the reverse.)


More information about the PyQt mailing list