<div dir="ltr">Unfortunately I get the same errors with #include <RcppArmadillo.h> last as well as <span style="font-size:12.8000001907349px">#include "bigmemory/BigMatrix.h" next to last.  The latter results in additional errors in BigMatrix.h with the expansion of INT.  Both scenarios still have "length passed 4 arguments" errors.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 2:51 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 24 February 2015 at 14:41, Charles Determan Jr wrote:<br>
| Thank you for that clarification, I always seem to forget that Rcpp packages<br>
| have many libraries loaded by default.  I have trimmed the headers down to the<br>
| following to just <br>
|<br>
| #include <RcppArmadillo><br>
|<br>
| However, some further background, I am working on extending the bigalgebra<br>
| package (hence the interest in RcppArmadillo) so their are some additional<br>
| headers that are now included in this problem.  The total headers now looks<br>
| like this:<br>
|<br>
| #include "bigmemory/BigMatrix.h"<br>
|<br>
| #include <RcppArmadillo.h><br>
|<br>
| #ifdef REFBLAS<br>
| #include "refblas64longlong.h"<br>
| #define INT long long<br>
| #else<br>
| #include <R_ext/BLAS.h><br>
| #include <R_ext/Lapack.h><br>
| #define INT int<br>
| #endif<br>
|<br>
| Again, if I simply change RcppArmadillo to Rcpp it compiles without a problem<br>
| but with RcppArmadillo more of the 'length passed 4 arguments' and also 'const<br>
| string has no member name 'Rf_length' errors.<br>
<br>
</span>Try reordering: Have #include <RcppArmadillo.h> last.<br>
<br>
And possibly #include "bigmemory/BigMatrix.h" next to last.<br>
<div class="HOEnZb"><div class="h5"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Charles Determan, PhD<br>Integrated Biosciences<br></div></div>
</div>