码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu下编译小知识点

时间:2018-06-11 20:28:55      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:ons   cmak   require   col   options   option   his   code   iso   

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下编译小知识点

标签:ons   cmak   require   col   options   option   his   code   iso   

原文地址:https://www.cnblogs.com/leon-FFF/p/9168855.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!