【求助】PC-lint初次使用,没有生成.out文件。

HeBanBei 2012-12-21 09:38:30
1、安装完成。
2、配置完成。(不清楚配置过程是否正确,正想试一下)
3、发现有一个test文件夹中,有例子。里面有.out文件。给出错误和警告信息。
4、配置文件夹为:config,其中生成一个lin.bat文件。文件内容如下:
"(省略)\lint\Lint-nt" +v -i"(省略)\lint\config" std.lnt -os(_LINT.TMP) %1 %2 %3 %4 %5 %6 %7 %8 %9
type _LINT.TMP | more
@echo off
echo ---
echo output placed in _LINT.TMP

5、我把lin.bat拷贝到某源文件.c的同一目录下,双击运行,结果生成一个空的_LINT.TMP文件。并没有.out文件。

是不是因为我以上操作中有不正确的地方?
...全文
317 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xxb249 2012-12-24
  • 打赏
  • 举报
回复
引用 8 楼 HeBanBei 的回复:
引用 7 楼 tianweishuiguo 的回复:sorry, i do not have Lint tools in hand, just do it according to the spec, carefully!! good luck!! 有错误信息了: Plain Text code?1234567--- Module: main.c (C++) ……
找不到头文件!! 你查看一下路径 对不对啊
HeBanBei 2012-12-24
  • 打赏
  • 举报
回复
引用 7 楼 tianweishuiguo 的回复:
sorry, i do not have Lint tools in hand, just do it according to the spec, carefully!! good luck!!
有错误信息了:
--- Module:   main.c (C++)

    
                _
#       include "lint_cppmac.h" 
E:\lint\config\co-gcc.h  24  Error 322: Unable to open include file
    'lint_cppmac.h'
帮我看看怎么回事。
东大坡居士 2012-12-23
  • 打赏
  • 举报
回复
sorry, i do not have Lint tools in hand, just do it according to the spec, carefully!! good luck!!
HeBanBei 2012-12-23
  • 打赏
  • 举报
回复
引用 4 楼 tianweishuiguo 的回复:
what's the error information? does environment variables configurated right?
安装之后,要求做一些配置。我不是很懂,但是都配置了。 现在就是第一次试,所以不能确定那些配置是否正确。
HeBanBei 2012-12-23
  • 打赏
  • 举报
回复
引用 4 楼 tianweishuiguo 的回复:
what's the error information? does environment variables configurated right?
E:\Program Files\CodeBlocks\projects\my_first_try>"E:\PROGRA~1\lint\Lint-nt"  +v
  -i"E:\Program Files\lint\config"  std.lnt  -os(_LINT.TMP)
PC-lint for C/C++ (NT) Vers. 9.00i, Copyright Gimpel Software 1985-2012

E:\Program Files\CodeBlocks\projects\my_first_try>type _LINT.TMP   | more

---
 output placed in _LINT.TMP
请按任意键继续. . .
执行信息如上所示。没有错误。
东大坡居士 2012-12-23
  • 打赏
  • 举报
回复
what's the error information? does environment variables configurated right?
HeBanBei 2012-12-23
  • 打赏
  • 举报
回复
引用 2 楼 tianweishuiguo 的回复:
i remember you not only need to copy lint.bat into your source file folder, but also need to copy config files to it.
配置文件也拷进去试了一下,还是不行。
东大坡居士 2012-12-23
  • 打赏
  • 举报
回复
i remember you not only need to copy lint.bat into your source file folder, but also need to copy config files to it.
HeBanBei 2012-12-23
  • 打赏
  • 举报
回复
pc-lint谁用过的,冒个泡行吗?

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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