问题描述:sublime text3 添加sublimeLinter插件后,decltype 关键字等一系列c++11标准总是会发出警告和error,尽管可以compile和run,但是看到那些警告和错误提示很恶心
解决方法:在sublimeLinter的setting-user里面添加以下代码以支持c++11
1 { 2 "linters":{ 3 4 "gcc":{ 5 "disable":false, 6 7 "executable": ["gcc"], 8 9 "args": ["-fsyntax-only","-std=c90"], 10 11 "excludes": [], 12 }, 13 "g++":{ 14 "disable":false, 15 16 "executable": ["g++"], 17 18 "args": ["-fsyntax-only","-std=c++11"], 19 20 "excludes": [], 21 }, 22 }, 23 }