[Rcpp-devel] RcppArmadillo and Rdefines

Dirk Eddelbuettel edd at debian.org
Wed Feb 25 16:31:29 CET 2015

On 25 February 2015 at 09:26, Charles Determan Jr wrote:
| I have finally solved the problem.  After coming across another posting http://
| r.789695.n4.nabble.com/rtools-fstream-error-td4702713.html I discovered the
| problem.  I needed to include #define R_NO_REMAP at the start of my file and
| then append Rf_ to any function I use from Rdefines.h.  The package now
| compiles without error.
| Thanks for your help Dirk, I know this was a long chain back and forth.

I am so sorry --- this approach is of course "known" (and eg explained in
Writing R Extensions).  It needs to be explained better on our side too.

I'll draft a new paragraph for the Rcpp-FAQ and have you glance at it, ok?

Glad you have it working now, and thanks for closing the loop here.


http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the Rcpp-devel mailing list