[Rcpp-devel] Request for an update of BH

Dirk Eddelbuettel edd at debian.org
Wed Oct 24 12:44:01 CEST 2018

On 24 October 2018 at 10:37, Jordi Molins wrote:
| So, it seems that in RcppExports, the compiler does not "understand" that
| boost exists. Since I have not used BH, since BH uses boost 1.66, and only
| boost 1.68 has the include that combines eigen and boost, I assume that the
| problem is that, in some unknown way to me, I should tell the compiler that
| at RcppExports it should use the includes of boost in my cpp file:
| #include <boost/multiprecision/float128.hpp>
| #include <boost/multiprecision/eigen.hpp>
| But RcppExports only have:
| #include <RcppArmadillo.h>#include <RcppEigen.h>#include <Rcpp.h>
| What should I do, in order to tell the compiler that in RcppExports, boost
| should be "understood"?

See the Rcpp Attributes vignette, Section 2.5 'Types in Generated Code':
You can use a file inst/include/yourpackagename_types.h to declare this.
Substitute yourpackagename for the name of your package.


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

More information about the Rcpp-devel mailing list