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 <e...@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 | e...@debian.org >
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel