1. 程式人生 > >#error This file requires compiler and library support for the ISO C++ 2011錯誤解決辦法

#error This file requires compiler and library support for the ISO C++ 2011錯誤解決辦法

出現

#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")