qt-copy compilation error

Andras Mantia amantia at kde.org
Sat Mar 17 08:55:13 GMT 2007


Hi,

 I've updated my qt-copy, and I run into a weird compilation error I 
just don't understand:

g++ -c -m64 -pipe -fno-exceptions -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_SSE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -I.moc/debug-shared -I/usr/X11R6/include -I.uic/debug-shared -o .obj/debug-shared/qwidget.o 
kernel/qwidget.cpp
kernel/qwidget.cpp: In member function ‘void 
QWidgetPrivate::init(QWidget*, Qt::WindowFlags)’:
kernel/qwidget.cpp:946: error: ‘class QWidgetData’ has no member 
named ‘in_destructor’
kernel/qwidget.cpp: In member function ‘void QWidget::create(WId, bool, 
bool)’:
kernel/qwidget.cpp:1027: error: ‘class QWidgetData’ has no member 
named ‘in_destructor’
kernel/qwidget.cpp: In destructor ‘virtual QWidget::~QWidget()’:
kernel/qwidget.cpp:1103: error: ‘class QWidgetData’ has no member 
named ‘in_destructor’
make[2]: *** [.obj/debug-shared/qwidget.o] Error 1
make[2]: Leaving directory `/opt/qt4/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/opt/qt4/src'
make: *** [sub-src] Error 2


qwidget.cpp:946 is:
data.in_destructor = false;

where data is a QWidgetData.

The QWidgetData definition has the following (qwidget.h:95):
class QWidgetData
{
public:
[...]
uint in_destructor : 1;
}

So why do I get the error if there is a member variable 
named "in_destructor" in QWidgetData??

I did an svn-clean prior to configuring qt-copy and configured with the 
recommended options from README.qt-copy, just like I did before as 
well.

The system is openSUSE10.2, x86_64, 
g++ (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) .

Is this a visibility problem? But then why doesn't complain for the 
other members of QWidgetData?

Any idea is welcome.

Andras
								
								
-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070317/6e6b82ec/attachment.sig>


More information about the kde-core-devel mailing list