嵌入式爱好者

查看: 6978|回复: 1

[Linux] Qt程序编译错误

[复制链接]

2

主题

10

帖子

41

积分

扫一扫,手机访问本帖
发表于 2020-4-3 18:35:50 | 显示全部楼层 |阅读模式
/opt/qt-4.7.1/bin/qmake -o Makefile Test1.pro
arm-linux-g++ -c -pipe -std=c++0x -O2 -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I. -I. -o main.o main.cpp
In file included from main.cpp:1:
widget.h:15: error: 'nullptr' was not declared in this scope
Makefile:206: recipe for target 'main.o' failed
make: *** [main.o] Error 1


该如何解决?


回复

使用道具 举报

0

主题

1173

帖子

2194

积分

发表于 2020-4-7 09:25:11 | 显示全部楼层
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-27 14:38

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表