1 #改变编译器选项 2 SET(CMAKE_C_COMPILER"g++") 3 #出现如下错误:添加C++11特性 4 #error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 5 #error This file requires compiler and library support \ 6 #添加如下语句 7 SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
ubuntu下编译小知识点
猜你喜欢
转载自www.cnblogs.com/leon-FFF/p/9168855.html
今日推荐
周排行