Skip to content
Prev 3557 / 10988 Next

[Rcpp-devel] conflict between R_ext/Applic.h and RcppArmadillo.h?

Richard,
On 1 March 2012 at 15:36, Dirk Eddelbuettel wrote:
| 
| Hi Richard,
|
| On 1 March 2012 at 16:25, Richard Chandler wrote:
| | Hi,
| | 
| | I am trying to call Rdqags (from R_ext/Applic.h) in a C++ program that
| | uses RcppArmadillo. Everything seems to work fine except the compiler
| | warns about conflicts. Is there a way to avoid these conflicts? Could
| | they cause any unforeseen problems? Below is a self-contained example
| | illustrating the problem. Note that RcppArmadillo is not actually
| | required in the example, but it is in my program. See below for
| | sessionInfo().

Another idea would be to dig up some old posts on the about how Rcpp lets you
get R API access points directly.  Davor used that to get to loess.  That way
you would get to use Rdqags but without needing the conflicting header.  Just
another thought.

Dirk