【问题标题】:PVS-Studio fails to analyse https://github.com/viva64/pvs-studio-cmake-examples/tree/master/example-1PVS-Studio 无法分析 https://github.com/viva64/pvs-studio-cmake-examples/tree/master/example-1
【发布时间】:2019-01-07 07:56:21
【问题描述】:

我拉下 example-1 并为它生成了一个 CMake 项目,使用:

cmake -G "Unix Makefiles" -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DCMAKE_BUILD_TYPE=Debug <source-dir>

当我构建项目时,我看到了以下输出:

[ 40%] Built target pvs-studio-cmake-example-1
[ 60%] Analyzing CXX file main.cpp
Your license will expire in 0 days. Contact us at support@viva64.com.
make[2]: *** [CMakeFiles/example1.analyze.dir/build.make:73: PVS- 
Studio/main.cpp.plog] Error 2
make[2]: *** Deleting file 'PVS-Studio/main.cpp.plog'
make[1]: *** [CMakeFiles/Makefile2:105: 
CMakeFiles/example1.analyze.dir/all] Error 2

make: *** [Makefile:84: all] 错误 2

我正在使用 Fedora 28。

gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)

有人知道我在这里做错了什么吗?

谢谢,

【问题讨论】:

  • 这个? > 您的许可证将在 0 天后到期。通过 support@viva64.com 联系我们。
  • @arrowd:我使用的是免费版 (viva64.com/en/b/0457/#ID0E4VAE)。所以我不需要许可证。

标签: cmake pvs-studio


【解决方案1】:

目前 PVS-Studio 的发布版本中存在错误,请从此处尝试测试版:https://www.viva64.com/en/pvs-studio-download-beta。这个错误应该在这个测试版中修复。

【讨论】:

  • 好的。会做。谢谢
猜你喜欢
  • 2019-03-21
  • 2018-06-08
  • 1970-01-01
  • 2020-09-28
  • 2018-05-16
  • 2017-12-13
  • 1970-01-01
  • 2020-02-03
  • 2021-05-17
相关资源
最近更新 更多