Qt程序编译错误
/opt/qt-4.7.1/bin/qmake -o Makefile Test1.proarm-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: *** Error 1
该如何解决?
您看一下https://blog.csdn.net/qq_42533853/article/details/88551757
页:
[1]