【发布时间】:2013-05-28 21:11:13
【问题描述】:
我已经定义了几个 .cpp 文件。 其中一个需要 RcppArmadillo 包; 其他需要 Rcpp 包。
生成我的Rcpp包并安装它后,我编译了几个错误如下:
RcppExports.cpp:49: error: ‘arma’ has not been declared
RcppExports.cpp:49: error: ‘arma’ has not been declared
RcppExports.cpp:49: error: expected `;' before ‘__result’
RcppExports.cpp:50: error: ‘__result’ was not declared in this scope
make: *** [RcppExports.o] Error 1
当我在 src 中查看 RcppExports.cpp 文件时,包含头是这样的:
#include <Rcpp.h>
我该怎么办?如何处理这个问题?非常感谢!
【问题讨论】: