[PyKDE] More gcc-2.96/PyKDE2 fun: protected structs
Bill Soudan
wes0472 at rit.edu
Tue Mar 26 04:14:11 GMT 2002
Next error:
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/python2.2 -I/usr/local/include/sip -I/usr/lib/qt2/include
-I/usr/X11R6/include -I/usr/include/kde/ -fno-exceptions -I
/usr/include/kde//kio -I../extraH -I
../kdecore -I ../kio -O2 -c kfilecmodule.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2
-I/usr/local/include/sip -I/usr/lib/qt2/include -I/usr/X11R6/include
-I/usr/include/kde/ -fno-exceptions -I /usr/include/kde//kio -I../extraH
-I ../kdecore -I ../kio -O2 -c kfilecmodule.cpp -fPIC -DPIC -o
kfilecmodule.lo
In file included from sipkfileKURLComboBox.h:44,
from kfilecmodule.cpp:72:
sipkfileKURLComboBoxKURLComboItem.h: In function
`KURLComboBox::_KURLComboItem
*sipForceConvertTo_KURLComboBox_KURLComboItem (PyObject *, int *)':
/usr/include/kde/kurlcombobox.h:183: `typedef struct
KURLComboBox::_KURLComboItem KURLComboBox::KURLComboItem' is protected
sipkfileKURLComboBoxKURLComboItem.h:51: within this context
Looks like sip doesn't handle protected structs correctly either: they
should be a part of the 'sip*' proxy classes that sip generates to get
access to the other protected attributes, but instead, plain functions are
created to deal with them. So when these plain functions try to use
protected structs, gcc-2.96 complains.
I'm about out of time for tonight -- have these sip bugs been already been
fixed?
Bill
More information about the PyQt
mailing list