码迷,mamicode.com
首页 > 编程语言 > 详细

在YouCompleteMe+Syntastic中添加和取消对C++11的支持

时间:2015-03-12 00:43:12      阅读:3045      评论:0      收藏:0      [点我收藏+]

标签:

添加对c++11的支持:

/.vimrc中添加:

  let g:syntastic_cpp_compiler = ‘g++‘  "change the compiler to g++ to support c++11.
  let g:syntastic_cpp_compiler_options = ‘-std=c++11 -stdlib=libc++‘ "set the options of g++ to suport c++11.
.ycm_extra_conf.py中:

  将flags数组中的‘-Wc++98-compat‘修改为‘-Wnoc++98-compat‘

 

取消对C++11的支持:

/.vimrc中去掉添加的两行syntastic配置。

.ycm_extra_conf.py中改回来,并且在flags数组中将‘-std=c++11‘修改为‘-std=c99‘

在YouCompleteMe+Syntastic中添加和取消对C++11的支持

标签:

原文地址:http://www.cnblogs.com/StartoverX/p/4331239.html

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