犰狳"ReferenceInputParameter is not a template"
RcppArmadillo "ReferenceInputParameter is not a template"
我正在尝试构建一个用户包,该软件包在安装了R 2.15.1的同事的Windows框上构建良好。 我的配置是:
R 2.15.3, RTools 3.0, Rcpp 0.10.4, Rcpp犰狳 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
知道发生了什么吗???
感谢您的帮助。萨奇科
你有最新的Rcpp犰狳,它需要最新的Rcpp,而你没有(我不会让你厌烦细节,但它与CRAN有关)。
从源代码安装 Rcpp 0.10.5,事情应该可以正常工作。
相关文章:
- 表示"accepting anything for this template argument" C++概念的通配符
- OpenMP卸载说'fatal error: could not find accel/nvptx-none/mkoffload'
- 模板函数参数到模板函数的"candidate template ignored: could not match ..."
- 如何修复 eigen3 中的'non-type template argument is not a constant expression'?
- 修复第三方代码:"error: ‘enable_if’ in namespace ‘std’ does not name a template type"
- 如何修复"static assertion failed: template argument not an integral type"错误?
- 定义模板类,但获取'is not a class template'
- "could not convert template argument"到自己的类型
- 表达式模板:错误 C2784 'could not deduce template argument'
- 犰狳"ReferenceInputParameter is not a template"
- constexpr with std::array - "Non-type template argument is not a constant expression"
- C++ "Class X is not a template type"
- std::map.insert "could not deduce template argument for..."
- "... is not a template"和"expected initializer before '<'"错误
- 为什么此代码有 C2784 "could not deduce template argument"错误
- "Class is not a template"
- 即使使用强制转换,指针参数也"could not convert template argument"错误
- "multiple template parameter lists are not allowed" ?
- 在cpp文件中实现模板专门化导致Template -id does not match错误
- 帮我解决"template parameters not used in partial specialization"