首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RcppArmadillo "ReferenceInputParameter不是模板“

RcppArmadillo "ReferenceInputParameter不是模板“
EN

Stack Overflow用户
提问于 2013-10-14 21:28:25
回答 1查看 177关注 0票数 2

我正在尝试构建一个用户包,它已经在我同事的窗口框上构建得很好,它已经安装了R2.15.1。我的配置是:

R 2.15.3,RTools 3.0,Rcpp 0.10.4,RcppArmadillo 0.3.920.1,RStudio 0.97.551

这是我运行"R CMD INSTALL mypackage“时的第一个编译实例。indfunForecast.cpp是包中的源文件之一。

代码语言:javascript
复制
>g++ -m32 -I"D:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG
-I"D:/R/win-library/2.15/Rcpp/include" -I"D:/R/win-library/2.15/RcppArmadillo/include" 
-I"d:/RCompile/CRANpkg/extralibs64/local/include" 
-O2 -Wall -mtune=core2 
-c indfunForecast.cpp -o indfunForecast.o

下面的错误消息是:

代码语言:javascript
复制
In file included from D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadillo.h:30:0,
             from indfunForecast.cpp:16:
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:99:33: 
error: 'ConstReferenceInputParameter' is not a template
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:100:33: 
error: 'ReferenceInputParameter' is not a template
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:101:33: 
error: 'ConstInputParameter' is not a template

你知道怎么回事吗?

感谢你的帮助。萨奇科

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-14 21:50:21

您有最新的RcppArmadillo,它需要最新的Rcpp,您没有(我不会让您对细节感到厌烦,但这是与CRAN相关的)。

从源代码中安装Rcpp 0.10.5,一切都会正常运行。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19369604

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档