[Rcpp-devel] Errors while compiling a script (seems to be related to Fortran)

Kevin Ushey kevinushey at gmail.com
Wed Sep 3 19:49:36 CEST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140903/02f15b01/attachment.html>


More information about the Rcpp-devel mailing list