<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Xiao,</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">I can reproduce the error -- but why do you have the includes as such, e.g.:</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><blockquote style="font-family:arial,sans-serif;font-size:13px;margin:0px 0px 0px 40px;border:none;padding:0px">#include <R.h><br>#include <float.h><br>#include <R_ext/Linpack.h><br>
#include <R_ext/Applic.h> /* for the QR     routines */<br>#include <R_ext/Utils.h>  /* for the *sort() routines */<br>#include <stdio.h><br>#include <RcppArmadillo.h><br>#define BIG DBL_MAX<br></blockquote>
<br style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial,sans-serif;font-size:13px">My best guess is that you'll have to re-organize the includes, or put in some corresponding `#define` and `#undef`s to clean up some macro pollution that seems to be leaking out. Note that the file compiles successfully if you just include RcppArmadillo (but presumedly, in a real example, you want things from the other headers).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Cheers,</div><div style="font-family:arial,sans-serif;font-size:13px">Kevin</div></div>