KDE 3.2.2 Build Problems with GCC 3.4
Martin Köbele
martin at mkoebele.de
Mon May 10 17:13:19 BST 2004
Hi,
there is another issue now with gcc 3.4:
kdirselectdialog.h has a member variable QPopupmenu *m_contextMenu;
but QPopupMenu is neither declared with 'class QPopupMenu;' nor its header is
included. Well, it is included, but in kdirselectdialog.cpp before
kdirselectdialog.h is included. Therefore there hasn't been any compile
problems.
But gcc 3.4 seems to forbid that when you use kdirselectdialog in your
program. gcc 3.4 complains:
"kdirselectdialog.h:112: error: ISO C++ forbids declaration of `QPopupMenu'
with no type"
I inserted a 'class QPopupMenu' in kdirselectdialog and committed it.
So it is fixed now.
But there might be other places in kdelibs where cases like that occur.
Martin
(mkoebele)
More information about the kde-core-devel
mailing list