您的位置:首页 > 编程语言 > C语言/C++

cppcheck使用简明手册

2010-11-23 20:28 225 查看
1. 安装cppcheck http://cppcheck.sf.net/
2. 安装Pygments (http://pypi.python.org/pypi/Pygments),下载Pygments-1.3.1-py2.5.egg (md5),安装python的egg相当于安装java的jar.用easy_install Pygments-1.3.1-py2.5.egg会比较方便
3. 在安装第二步之前,确认你的机器安装了python,和easy_install.通常python是自动安装的,如果没有安装easy_install,那么
wget -q http://peak.telecommunity.com/dist/ez_setup.py 获取一下
python ez_setup.py
4. cppcheck /home/oracle/release/openim_server/Servers/AliDDB 2>err.xml
5. python cppcheck-htmlreport --file=err.xml --report-dir=test1 --source-dir=/home/oracle/release/openim_server/Servers/
报告结果略。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: