我从github上拿了一些红色书籍的例子。在的领导下,我经营着cmake,一切都很好。当我运行make时,会得到以下错误:
In file included from /usr/include/c++/4.9/cstdint:35:0,
from /home/antonio/Documenti/CG/OGLPG-9th- Edition/lib/vdds.cpp:16:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #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.
。。。
发布于 2017-05-20 14:20:27
在CmakeLists.txt文件中添加这一行:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")
https://stackoverflow.com/questions/44086259
复制相似问题