使用C ++ 11的SublimeLinter [英] SublimeLinter with C++11
问题描述
我已经开始将Sublime Text 3用作C ++的代码编辑器,并安装了一些其他软件包,其中两个是SublimeLinter和SublimeLinter-contrib-clang.一切似乎都运行良好,只是看起来好像棉绒布中不支持C ++ 11.
I've started using Sublime Text 3 as my code editor for C++ and I installed some additional packages, two of which being SublimeLinter and SublimeLinter-contrib-clang. Everything seems to be working fine, except that it looks like there is no support for C++11 in the linter.
您知道我该如何更改才能与C ++ 11一起使用吗?
Do you know how I could change that to work with C++11?
推荐答案
对于有相同问题的任何人:
For anybody with the same problem:
解决方案是转到首选项"->程序包设置"->"SulbimeLinter"->默认设置".
The solution is to go to Preferences -> Package Settings -> SulbimeLinter -> Settings Default.
您需要粘贴以下内容:
"linters":
{
"clang": {
"extra_flags": "-std=c++11"
}
},
默认"名称空间中的某处.至少对我有用.
somewhere in the "default" namespace. At least that worked for me.
干杯!
这篇关于使用C ++ 11的SublimeLinter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!