<div dir="ltr">Correction, Armadillo version: 7.900.2</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 July 2017 at 19:09, Patrick Veenstra <span dir="ltr"><<a href="mailto:patrick@pveenstra.com" target="_blank">patrick@pveenstra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>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::<wbr>Mat<unsigned int>&) const’<br><br>Error 2: in ~/RLibs/RcppArmadillo/include/<wbr>armadillo_bits/arma_static_<wbr>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>
</blockquote></div><br></div>