Hi Xiao, I can reproduce the error -- but why do you have the includes as such, e.g.:
#include <R.h> #include <float.h> #include <R_ext/Linpack.h> #include <R_ext/Applic.h> /* for the QR routines */ #include <R_ext/Utils.h> /* for the *sort() routines */ #include <stdio.h> #include <RcppArmadillo.h> #define BIG DBL_MAX 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). Cheers, Kevin
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel