Hi,
I've been working on an application in Qt 3.3 and I've just upgraded to 4.4. When I now make my app I get the following error message:
make -fMakefile.multi_meter.unx
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.4.3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.4.3/include/QtCore -I/usr/local/Trolltech/Qt-4.4.3/include/QtCore -I/usr/local/Trolltech/Qt-4.4.3/include/QtGui -I/usr/local/Trolltech/Qt-4.4.3/include/QtGui -I/usr/local/Trolltech/Qt-4.4.3/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.4.3/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.4.3/include -I../../libbaptools/src -I/usr/X11R6/include -I. -I. -o obj_unix/meterwindow.o meterwindow.cpp
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected `)' before ‘-’ token
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘,’ or ‘...’ before ‘-’ token
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected identifier before numeric constant
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘,’ or ‘...’ before numeric constant
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: ISO C++ forbids declaration of ‘uchar’ with no type
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: declaration of ‘int QUuid::uchar(int)’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/qglobal.h:788: error: changes meaning of ‘uchar’ from ‘typedef unsigned char uchar’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: ISO C++ forbids declaration of ‘uchar’ with no type
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘;’ before ‘b3’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:104: error: expected `;' before ‘
QUuid’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:174: error: ‘uchar’ does not name a type
/usr
/local
/Trolltech
/Qt
-4.4.3
/include
/QtCore
/quuid.
h: In constructor ‘
QUuid::QUuid()’
: /usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:87: error: ‘data4’ was not declared in this scope
/usr
/local
/Trolltech
/Qt
-4.4.3
/include
/QtCore
/quuid.
h: In member function ‘
bool QUuid::operator==(const QUuid
&) const’
: /usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:119: error: ‘data4’ was not declared in this scope
/usr
/local
/Trolltech
/Qt
-4.4.3
/include
/QtCore
/quuid.
h:119: error
: ‘
const struct QUuid’ has no member named ‘data4’
make: *** [obj_unix/meterwindow.o] Error 1
make -fMakefile.multi_meter.unx
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.4.3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.4.3/include/QtCore -I/usr/local/Trolltech/Qt-4.4.3/include/QtCore -I/usr/local/Trolltech/Qt-4.4.3/include/QtGui -I/usr/local/Trolltech/Qt-4.4.3/include/QtGui -I/usr/local/Trolltech/Qt-4.4.3/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.4.3/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.4.3/include -I../../libbaptools/src -I/usr/X11R6/include -I. -I. -o obj_unix/meterwindow.o meterwindow.cpp
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected `)' before ‘-’ token
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘,’ or ‘...’ before ‘-’ token
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected identifier before numeric constant
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘,’ or ‘...’ before numeric constant
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: ISO C++ forbids declaration of ‘uchar’ with no type
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: declaration of ‘int QUuid::uchar(int)’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/qglobal.h:788: error: changes meaning of ‘uchar’ from ‘typedef unsigned char uchar’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: ISO C++ forbids declaration of ‘uchar’ with no type
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:89: error: expected ‘;’ before ‘b3’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:104: error: expected `;' before ‘QUuid’
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:174: error: ‘uchar’ does not name a type
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h: In constructor ‘QUuid::QUuid()’:
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:87: error: ‘data4’ was not declared in this scope
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h: In member function ‘bool QUuid::operator==(const QUuid&) const’:
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:119: error: ‘data4’ was not declared in this scope
/usr/local/Trolltech/Qt-4.4.3/include/QtCore/quuid.h:119: error: ‘const struct QUuid’ has no member named ‘data4’
make: *** [obj_unix/meterwindow.o] Error 1
To copy to clipboard, switch view to plain text mode
I'm guessing there's some incompatibility between my code and Qt4.4 but it still seem an odd set of error messages. Does anyone have any ideas what the problem is from these messages?
Thanks
Chris
Bookmarks