When attempting to compile a cpp function that uses RcppArmadillo (in
RStudio), I get the following two errors from files provided by
RcppArmadillo:

Error 1: In ~/RLibs/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp line
4467:

no matching function for call to ‘arma::Gen<arma::Mat<double>,
arma::gen_zeros>::apply(arma::Mat<unsigned int>&) const’

Error 2: in
~/RLibs/RcppArmadillo/include/armadillo_bits/arma_static_check.hpp line 31:

size of array is negative and uninitialized const 'junk'

Environment details:

Platform: Linux fedora core 22, 4.0.6-300.fc22.x86_64
Armadillo version: 6.700.6
R: 3.3.0
RStudio: 1.0.143

NAMESPACE Contents:

exportPattern("^[[:alpha:]]+")
importFrom(Rcpp, evalCpp)
useDynLib(ThisPackage)

DESCRIPTION links to both Rcpp and RcppArmadillo

Any idea on how I could go about solving this?

Many thanks!
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to