Red Hat Bugzilla – Bug 20948
Bug in GCC 2.96
Last modified: 2007-04-18 12:29:52 EDT
I want to report a bug in GCC 2.96 or in library qt-1.45.
File qt_test.C which has only one line:
After compilation, I got the error message:
In file included from qt_test.C:1:
/usr/lib/qt-1.45/include/qregion.h:73:182: "defined" without an identifier
I checked compiler version:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
In older compiler (2.95), qt_test.C has no problem.
The problem with the file qregion.h is:
To check this I made a file xor_test.C which has only the line
The compilation result in version 2.96 was:
xor_test.C:1:13: "defined" without an identifier
On version 2.95 OK
Qt 1.x (as opposed to Qt 2.x) is not proper C++ and thus cannot be compiled
by g++ 2.96 which is quite strict about C++ standard.
Qt 1.x / KDE 1 packages should be compiled using the compat-egcs-c++ compiler
(egcs++), make sure you pass -L/usr/lib to the compiler so that it does not
pick up glibc 2.1 compatibility libraries.
It would be wasted effort now that there is KDE 2 and Qt 2 to spent days on
fixing Qt 1 and KDE 1.