pc-lint和SourceInsight---50分

whyuu 2006-12-20 01:46:07
想把pc-lint和SourceInsight连接起来,可是按照在网上找的资料进行设置,竟然没有一个可以成功,特来发帖请教,他们的设置方法。头都快大了
我的环境:windows xp-sp2 sourceinsight-3.5 pc-lint升级到了PC-lint for C/C++ (NT) Vers. 8.00u, Copyright Gimpel Software 1985-2006版,
...全文
407 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
whyuu 2006-12-26
  • 打赏
  • 举报
回复
已经可以了
caocheng8230 2006-12-25
  • 打赏
  • 举报
回复
mark
ReverseEngineering 2006-12-24
  • 打赏
  • 举报
回复
看不懂!
lei001 2006-12-23
  • 打赏
  • 举报
回复
给的是什么错误提示呢
lei001 2006-12-23
  • 打赏
  • 举报
回复
如可以通过source insight 启动pc lint,则说明工具没有,
如是pc lint检查不通过,则是些必要的头文件没有包括吧
whyuu 2006-12-22
  • 打赏
  • 举报
回复
谢谢lei001这个std.lnt我试过了,还是不行,run后又错误提示
whyuu 2006-12-21
  • 打赏
  • 举报
回复
lei001(太极),谢谢,你好,我这样做过了,但还是不行,请问std.lnt文件是如何生成的?他的内容是什么?我在网上找了一些创建std.lnt的方法,是用记事本改扩展名的,内容如下:
// contents of std.lnt

c:\pclint\co-msc60.lnt
c:\pclint\lib-w32.lnt
c:\pclint\options.lnt -si4 -sp4
-i"D:\Program Files;D:\Program Files\Microsoft Visual Studio\VC98\Include"

//end
我试过了,不行,好像这个是给VC++6用的,但是给SourceInsight用的该如何改呢?
请教lei001(太极)
lei001 2006-12-21
  • 打赏
  • 举报
回复
你修改了那些文件呢?
lei001 2006-12-21
  • 打赏
  • 举报
回复
用这个std.lnt文件试试:
//NOTES: DON'T delete the comment string
//author+++
//au-sm.lnt au-ds.lnt au-misra.lnt
//author---

//compiler+++
co-gnu3.lnt
//compiler---

//library+++
lib-stl.lnt lib-w32.lnt lib-wnt.lnt
//library---

//alignment+++
-si4 -sp4
//alignment---

//3gTdrnc.lnt
lei001 2006-12-20
  • 打赏
  • 举报
回复
/*
env-si.lnt: The environment file to run PC-lint from within the
Source Insight Editor.

To set up Source Insight to run PC-lint from a custom command
do the following:

1) Select custom commands from the options menu.

a) Enter "PC-lint unit check" as the Name of the new command.

b) Enter in the run edit box the following:

c:\lint\lint-nt -u -ic:\lint std env-si %f

Where c:\lint is your lint directory.

c) Check the following check boxes/radio buttons

Iconic Window
Capture Output
Save Files First
Parse Links in Output
File, then Line

d) Enter the following expression in the Pattern edit box

^\([^ ]*\) \([0-9]+\)

This indicates that Messages are identified by:
File-name blank line-number

In order to run PC-lint, select from the Options menu the
Custom Commands. Then select PC-lint from the Command
and click on the run button.
*/
-"format=%f %l %t %n: %m"
-hfa_3
-width(194,0)
whyuu 2006-12-20
  • 打赏
  • 举报
回复
我已经搜索很多了,为什么就是不行呢,唉唉唉唉啊唉唉唉阿。再顶

3,882

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧