小白写的,仅供个人参考,望大神多多指教
centos 7 下sublime text 3 cppcheck
- 在sublime text 3 安装 Package Control , 安装方法百度
- 再使用Package Control安装SublimeLinter和SublimeLinter-cppcheck
再安装Cppcheck,http://sourceforge.net/projects/cppcheck/
先看readme.txt,不需要GUI,直接1). \$ make 2). \$sudo make install
会报错
cppcheck: unusedFunction check can’t be used with ‘-j’ option. Disabling unusedFunction check.
(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without CFGDIR set. Either the std.cfg should be available in cfg or the CFGDIR should be configured.
百度,说make CFGDIR=/usr/local/cppcheck_1.73/cfg/
但重新
\$make CFGDIR=/usr/local/cppcheck_1.73/cfg/
\$sudo make instal