[Rcpp-devel] Request for an update of BH

Jordi Molins jordi.molins.coronado at gmail.com
Wed Oct 24 14:52:44 CEST 2018


Thank you, this answer has been helpful, now it works.

I have also deleted the corresponding post in stackoverflow, to avoid
duplications.


Jordi Molins i Coronado
+34 69 38 000 59


On Wed, Oct 24, 2018 at 12:44 PM Dirk Eddelbuettel <edd at debian.org> wrote:

>
> 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.
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181024/562bad41/attachment.html>


More information about the Rcpp-devel mailing list