TscanCode icon indicating copy to clipboard operation
TscanCode copied to clipboard

Linux下使用-h感觉不全,请问从哪获取指导文档?

Open yuanliwei23 opened this issue 6 years ago • 4 comments

1、() Include file: not found. Please note: tscancode does not need standard library headers to get proper results. ---》 想解决这种库头文件依赖的错误,是不是要配置cfg?

yuanliwei23 avatar Dec 12 '18 08:12 yuanliwei23

2、Linux上解压后,在TscanCodeV2.14.2395.linux目录下有个执行文件tscancode,并列的cfg目录下的各个cfg是tscancode自动调用的吗?

我的命令行是这样:./tools/TscanCodeV2.14.2395.linux/tscancode --enable=all ./src 1> out/result.xml 2>&1

yuanliwei23 avatar Dec 12 '18 08:12 yuanliwei23

2、Linux上解压后,在TscanCodeV2.14.2395.linux目录下有个执行文件tscancode,并列的cfg目录下的各个cfg是tscancode自动调用的吗?

我的命令行是这样:./tools/TscanCodeV2.14.2395.linux/tscancode --enable=all ./src 1> out/result.xml 2>&1

是这样的,输出结果重定向标准错误就可以了 2>result.xml

ben620 avatar Mar 18 '19 08:03 ben620

文件依赖错误可以尝试下配置-I

ben620 avatar Mar 18 '19 08:03 ben620

@ben620

  1. 第一个问题我也遇到了,在linux系统下测试到。 当有标准头文件时,例如<stdio.h>,如果没有用--check-config,tscancode提示 () Tscancode cannot find all the include files (use --check-config for details)
  2. 但是我使用了--check-config Tscancode又提示,它不需要这个标准的头文件 <stdio.h> not found. Please note: tscancode does not need standard library headers to get proper results.

leimgitub avatar Mar 25 '19 06:03 leimgitub