<div dir="ltr">Greetings,<div><br></div><div>I have run in to an error when compiling an R package that has the following headers in the only cpp file at the moment:</div><div><br></div><div>#include <string></div><div>#include <iostream></div><div>#include <cmath></div><div><br></div><div>#define R_NO_REMAP</div><div><br></div><div>#include <R.h></div><div>#include <Rinternals.h></div><div>#include <Rdefines.h></div><div><br></div><div>Now, I am also trying to use RcppArmadillo with:</div><div><br></div><div>#include <RcppArmadillo.h></div><div>// [[Rcpp::depends(RcppArmadillo)]</div><div><br></div><div>However, when I try and build the package, it errors out with a bunch of errors such as:</div><div><br></div><div>/usr/include/c++/4.8/bits/fstream.tcc:824:60: error: macro "length" passed 4 arguments, but takes just 1</div><div><br></div><div>which is repeated multiple times on different lines.  I haven't included the entire output as it is rather lengthly but could provide if it would help further.  I tried searching for help but the closest I found was this previous post (<a href="http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2013-February/005325.html">http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2013-February/005325.html</a>) but the R_NO_REMAP hasn't helped here.  I suspect something must be conflicted between the R headers and RcppArmadillo because it works just fine if I only use Rcpp.h (but I want to use RcppArmadillo).  Any thoughts?</div><div><br></div><div>Regards,</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Charles Determan, PhD<br>Integrated Biosciences<br></div></div>
</div></div>