RcppEigen程序包";#杂注点击诊断弹出窗口警告(&Q;) [英] RcppEigen package "#pragma clang diagnostic pop" warnings
本文介绍了RcppEigen程序包";#杂注点击诊断弹出窗口警告(&Q;)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用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程序包";#杂注点击诊断弹出窗口警告(&Q;)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文