ubuntu linux中安装qt后,编译example出错,求解
社会栋梁 2010-07-07 01:06:04 Running build steps for project systray...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I../systray -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../systray -I../systray -I. -o main.o ../systray/main.cpp
In file included from ../systray/main.cpp:44:
../systray/window.h:49: error: expected constructor, destructor, or type conversion before ‘class’
../systray/window.h:62: error: expected constructor, destructor, or type conversion before ‘class’
make: Leaving directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project systray (target: Desktop)
When executing build step 'Make'