双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

ubuntu linux中安装qt后,编译example出错,求解

社会栋梁 社会栋梁 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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'
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
社会栋梁
Qt 21,503 成员 26,693 内容