RcppArmadillo amp;quot;ReferenceInputParameter is not a templateamp;quot;(RcppArmadilloamp;ReferenceInputParameter不是模板)
问题描述
我正在尝试构建一个用户包,它已经在我同事的Windows box上构建得很好,它安装了R 2.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是包中的源文件之一。
>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
以下是错误消息:
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
知道发生了什么吗?
感谢您的帮助。 萨奇科
推荐答案
您有最新的RcppArmadillo,它需要最新的RCPP,而您没有(我不会用详细信息让您感到厌烦,但它与CRAN相关)。
从源安装RCPP 0.10.5,应该可以正常工作。
这篇关于RcppArmadillo&;ReferenceInputParameter不是模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:RcppArmadillo&;ReferenceInputParameter不是模板
基础教程推荐
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- CString 到 char* 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
