RcppEigen程序包"#杂注点击诊断弹出窗口警告(&Q;)弹出窗口、程序包、RcppEigen、quot

2023-09-03 11:03:03 作者:喜尒想…犯zμì

尝试使用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

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

推荐答案

地坛医院互联网诊疗11月23日即将上线

解决方案

#define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#include <Eigen/Eigen>