首页 > 系统服务 > 详细

ubuntu下编译小知识点

时间:2018-06-11 20:01:06      阅读:167      评论:0      收藏:0      [点我收藏+]
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下编译小知识点

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!