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不是模板


基础教程推荐
- 设计字符串本地化的最佳方法 2022-01-01
- C++ 标准:取消引用 NULL 指针以获取引用? 2021-01-01
- 如何定义双括号/双迭代器运算符,类似于向量的向量? 2022-01-01
- C++,'if' 表达式中的变量声明 2021-01-01
- 如何在 C++ 中处理或避免堆栈溢出 2022-01-01
- 您如何将 CreateThread 用于属于类成员的函数? 2021-01-01
- 什么是T&&(双与号)在 C++11 中是什么意思? 2022-11-04
- 调用std::Package_TASK::Get_Future()时可能出现争用情况 2022-12-17
- C++ 程序在执行 std::string 分配时总是崩溃 2022-01-01
- 运算符重载的基本规则和习语是什么? 2022-10-31