0

我正在尝试在 Windows 上使用 PC-Lint 对 C 文件进行静态代码分析。我安装了软件并运行了gcc 编译器的配置设置,我在 config 目录中获得了以下文件:

co-gcc.h, co-gcc.lnt, env-ecl-console.lnt, filea.cpp, fileb.cpp, LIN.BAT,
lset.bat, options.lnt, std.lnt, std_a.lnt

但是,当我尝试通过>lin filea fileb从配置目录键入来运行测试示例时,我收到以下错误:

co-gcc.lnt  37  Error 307: Can't open indirect file 'gcc-include-path.lnt'

我们如何获得 gcc-include-path.lnt 文件?

4

1 回答 1

3

通过使用位于PC-lint9.00h\lnt文件夹中的 makefile co-gcc.mak创建lint_cmac.h、lint_cppmac.h、gcc-include-path.lnt 和 size-options.lnt文件解决了错误。

于 2016-04-12T13:00:03.387 回答