Source_Insight教程及技巧——最终整合版
这里说的是手工配置,假设我的pclin.exe在 d:\pclint8目录下面,所有的*.lnt文件在d:\pclint8\lnt目录下面:
1. options->custom commands
a) 添加一个新的命令名,例如:Pc Lint
b) 在run 中填入:
d:\pclint8\lint -u -ic:\lint std env-si %f
d:\pclint8 是你的Pclint所在的目录.
c) 在path中填入:
d:\PCLint8\lnt(就是你所有*.lnt文件所在的目录)
d) 勾选下面的选项:
Iconic Window
Capture Output
Save Files First
Parse Links in Output
File, then Line
e) 在Pattern 框中填入:
^\([^ ]*\) \([0-9]+\)
2.把这个命令加入到菜单中即可.
以上配置适用于编译单个文件;要编译多个文件,可以建立一个lnt文件,具体方法如下: 假设我的工程在e:\myproj下面,源文件放在e:\myproj\source下面,头文件放在e:\myproj\include下面;假设source目录下有文件:source1.c,source2.c;include目录下面有incude.h;那么我可以建立这样一个lnt文件:
-i"e:\myproj\include" //头文件寻找路径
e:\myproj\source\source1.c //需要编译的文件1
e:\myproj\source\source2.c //需要编译的文件2
然后保存为test.lnt;把上面配置中的步骤b中的
d:\pclint8\lint -u -ic:\lint std env-si %f
改成:
d:\pclint8\lint -u -ic:\lint std test env-si
注意:
1.如果源文件引用头文件的时候使用的是相对路径或者完整的绝对路径;那么可以不用在lnt文件中加入头文件寻找路径;如果只是给出了头文件的名字,而没有给出任何路径那么加入头文件寻找路径就是必须的了.
2.无论是在si的自定义命令中输入的配置命令还是自己写的lnt文件中的命令都必需仔细;很多时候多个空格或者少个空格都会出错.
按照这个操作后出现error 305
第 1 页 共 1 页
Source Insight教程及技巧(大全)——最终整合版_IT/计算机_专业资料。Source Insight教程及技巧(大全)——最终整合版今日推荐 81份文档 笑话大全集 笑话大全爆笑版...
Source_Insight教程及技巧(大全)_计算机软件及应用_IT/计算机_专业资料。Source Insight 使用简单说明 王绍伟 wangsw317@163.com Source Insight 使用简单说明 ...
汇总其他小技巧: 让{ 和 } 不缩进: Options->Document Options->Auto Indent->Indent Open Brace/Indent Close Brace hao space: SourceInsight 小技巧 1、按住...
Source_Insight使用教程+技巧_工学_高等教育_教育专区。Source_Insight使用教程+技巧作为一个开放源代码的操作系统,Linux 附带的源代码库使得广大爱好者有了一个广泛...
Source Insight教程及技巧_计算机软件及应用_IT/计算机_专业资料。source insight 如此好用的代码工具了,看了此文之后,必然精通今日推荐 ...
sourceinsight教程_IT/计算机_专业资料。sourceinsightSourceInsight 应用技巧 SourceInsight 应用技巧崔 庆伟 ―――崔庆伟 Source Insight 实质上是一个支持多种开发...
Source_Insight使用教程_信息与通信_工程科技_专业资料。Source_Insight使用教程...解 决方法是在 Options->Document Options 里面,点左上的 Document Type 下拉...
Source_Insight教程_工学_高等教育_教育专区。source_insight教程Source?Insight 简明教程? ? 1. 创建一个 Source?Insight 工程? ? 启动 Source?Insight。? ? ?...
Source Insight 技巧收集 Source Insight 技巧收集 1、背景色选择 要改变背景色 Options->preference->windows background->color 设置背景色 2、解决字符等宽对齐问题...
Source Insight 经典教程 http://blog.chinaunix.net/u2/76292/showart.php?...解决方法是在 Options->Document Options 里面,点左上的 Document Type 下拉 ...
热门文档