PC-Lint错误:错误307:不能打开间接文件'gcc- includepath.lnt '

时间:2022-02-23 20:52:16

I am trying to use PC-Lint on windows for exercising static code analysis on C files. I installed the software and ran the configuration setup for gcc compiler where I got the following files in the config directory:

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

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

However when I try to run the test sample by typing >lin filea fileb from the config directory, I get the following error:

但是,当我试图通过从config目录中键入> linfilea fileb来运行测试样例时,我得到了以下错误:

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

How do we get the gcc-include-path.lnt file?

我们如何获得gcc- includepath。lnt文件?

1 个解决方案

#1


2  

Error got solved by creating lint_cmac.h, lint_cppmac.h, gcc-include-path.lnt, and size-options.lnt files using the makefile co-gcc.mak located in PC-lint9.00h\lnt folder.

通过创建lint_cmac来解决错误。h,lint_cppmac。h,gcc-include-path。lnt,大小选项。使用makefile联合gcc的lnt文件。mak位于PC-lint9.00h\lnt文件夹。

#1


2  

Error got solved by creating lint_cmac.h, lint_cppmac.h, gcc-include-path.lnt, and size-options.lnt files using the makefile co-gcc.mak located in PC-lint9.00h\lnt folder.

通过创建lint_cmac来解决错误。h,lint_cppmac。h,gcc-include-path。lnt,大小选项。使用makefile联合gcc的lnt文件。mak位于PC-lint9.00h\lnt文件夹。