我尝试将 PCLint 与 c++ 一起使用。我正在使用仅在我的 cmake 文件中定义为包含目录的 Eigen 标头库。我尝试了以下命令:
lint-nt.exe std.lnt -i"pathToEigenLibrary" "listOfFileToLint"
问题是我不知道我必须在我的 std.lnt 中写什么,以便 lnt 忽略 Eigen 库上的错误。我试过了 :
-wlib(0)
-libh("pathToEigenLibrary")
-libdir("pathToEigenLibrary")
有人有这方面的经验吗?
我收到很多错误,例如:
\Eigen\Eigen\src\Core\util\XprHelper.h 337 Error 1048: expected a constant expression
Eigen\Eigen\src\Core\util\XprHelper.h 279 Error 1048: expected a constant expression
While instantiating struct Eigen::internal::nested<Eigen::DiagonalProduct<<1>,<2>,<3>>> at File Eigen\Eigen\src\Core\DiagonalProduct.h line 50