0

我拉下 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)

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

谢谢,

4

1 回答 1

1

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

于 2018-07-31T09:33:49.770 回答