<div dir="ltr">Thank you, this answer has been helpful, now it works. <div><br></div><div>I have also deleted the corresponding post in stackoverflow, to avoid duplications.</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jordi Molins i Coronado</div><div><div>+34 69 38 000 59</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 24, 2018 at 12:44 PM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 24 October 2018 at 10:37, Jordi Molins wrote:<br>
| So, it seems that in RcppExports, the compiler does not "understand" that<br>
| boost exists. Since I have not used BH, since BH uses boost 1.66, and only<br>
| boost 1.68 has the include that combines eigen and boost, I assume that the<br>
| problem is that, in some unknown way to me, I should tell the compiler that<br>
| at RcppExports it should use the includes of boost in my cpp file:<br>
| <br>
| #include <boost/multiprecision/float128.hpp><br>
| #include <boost/multiprecision/eigen.hpp><br>
| <br>
| But RcppExports only have:<br>
| <br>
| #include <RcppArmadillo.h>#include <RcppEigen.h>#include <Rcpp.h><br>
| <br>
| What should I do, in order to tell the compiler that in RcppExports, boost<br>
| should be "understood"?<br>
<br>
See the Rcpp Attributes vignette, Section 2.5 'Types in Generated Code':<br>
You can use a file inst/include/yourpackagename_types.h to declare this.<br>
Substitute yourpackagename for the name of your package.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div>