Qt 解决 #error This file requires compiler and library support for the ISO C++ 2011 standard
生活随笔
收集整理的這篇文章主要介紹了
Qt 解决 #error This file requires compiler and library support for the ISO C++ 2011 standard
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
一、Qt編譯過(guò)程中,出現(xiàn)以下問(wèn)題
#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
意思是缺乏c++11的支持。二、在Qt工程中添加c++11即可解決具體方法:
1、Qt5的版本,在pro文件添加以下內(nèi)容:
CONFIG += c++11
2、Qt5以下的版本,在pro文件添加以下內(nèi)容:
QMAKE_CXXFLAGS += -std=c++0x
?
?
?
總結(jié)
以上是生活随笔為你收集整理的Qt 解决 #error This file requires compiler and library support for the ISO C++ 2011 standard的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: saas是什么意思_为什么越来越多的人选
- 下一篇: win10taskkill强行结束进程_