gpt4 book ai didi

RcppEigen 包 "#pragma clang diagnostic pop"警告

转载 作者:行者123 更新时间:2023-12-03 14:57:17 25 4
gpt4 key购买 nike

我在尝试使用 RcppEigen 时遇到了一些问题包裹。我使用了发布的示例 here .该函数有效,但 R 生成了一系列类似的警告(示例如下)。

In file included from example.cpp:1:
In file included from /Users/nguy2338/Library/R/3.4/library/RcppEigen/include/RcppEigen.h:25:
In file included from /Users/nguy2338/Library/R/3.4/library/RcppEigen/include/RcppEigenForward.h:30:
In file included from /Users/nguy2338/Library/R/3.4/library/RcppEigen/include/Eigen/Dense:1:
In file included from /Users/nguy2338/Library/R/3.4/library/RcppEigen/include/Eigen/Core:531:
/Users/nguy2338/Library/R/3.4/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
#pragma clang diagnostic pop

那么,这些警告是什么意思,我应该如何处理这些警告?

最佳答案

解决办法是

#define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#include <Eigen/Eigen>

关于RcppEigen 包 "#pragma clang diagnostic pop"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49525561/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com