<div dir="ltr">When attempting to compile a cpp function that uses RcppArmadillo (in RStudio), I get the following two errors from files provided by RcppArmadillo:<br><br>Error 1: In ~/RLibs/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp line 4467:<br><br>no matching function for call to ‘arma::Gen<arma::Mat<double>, arma::gen_zeros>::apply(arma::Mat<unsigned int>&) const’<br><br>Error 2: in ~/RLibs/RcppArmadillo/include/armadillo_bits/arma_static_check.hpp line 31:<br><br>size of array is negative and uninitialized const 'junk' <br><br>Environment details:<div><br><div>Platform: Linux fedora core 22, 4.0.6-300.fc22.x86_64<br>Armadillo version: 6.700.6<br>R: 3.3.0<br>RStudio: 1.0.143<br><br>NAMESPACE Contents:<br><br><div>exportPattern("^[[:alpha:]]+")<br>importFrom(Rcpp, evalCpp)<br>useDynLib(ThisPackage)<br><br>DESCRIPTION links to both Rcpp and RcppArmadillo</div><div><br></div><div>Any idea on how I could go about solving this?</div><div><br></div><div>Many thanks!</div><div><br></div><div><br></div></div></div></div>