出现
#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.
错误
修改CMakeLists.txt中,SET(CMAKE_CXX_FLAGS " ")为SET(CMAKE_CXX_FLAGS "-std=c++0x")
本文介绍了解决在使用C++11标准进行编译时遇到的#error错误的方法。通过修改CMakeLists.txt文件中的编译选项,启用C++11的支持。
85

被折叠的 条评论
为什么被折叠?



