查看: 20605|回复: 1

[Linux] Qt程序编译错误

2

主题

11

回帖

41

积分

wlf 发表于 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

主题

1185

回帖

2207

积分

FCU1501通行证

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

使用道具 举报

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

本版积分规则