Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Dirk Eddelbuettel
On 11 March 2015 at 19:34, Jordi Molins Coronado wrote: | I think I can answer my own question: #include is not in the BH package. Instead, #include is included, so if I add this #include in my file, the | compile works. But apparently, I cannot include cpp_int.cpp. Correct, it is not (yet) in

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
I think I can answer my own question: #include is not in the BH package. Instead, #include is included, so if I add this #include in my file, the compile works. But apparently, I cannot include cpp_int.cpp.

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
I have an odd problem: now I have the computeGCD function working. My next step has been to create another function doing something trivial, but adding the include for multiprecision of integers: // We can now use the BH package// [[Rcpp::depends(BH)]] #include #include #include using namespace

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
Dirk, sorry for the newbie mistakes. Now I know I want to use compileAttributes() :) ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Dirk Eddelbuettel
Jordi, 1) Please edit your replies. There is no need to return all the prior emails. 2) Please read the vignette 'Rcpp Attributes'. The vignette has all the answers. In short you REALLY do not want sourceCpp in a package. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debi

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
recommendation. Date: Wed, 11 Mar 2015 07:21:49 -0500 Subject: Re: [Rcpp-devel] Question about Rcpp and boost From: [email protected] To: [email protected] CC: [email protected] Could you provide the build error you are referring to? You shouldn't need to change the

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Charles Determan Jr
--- > Date: Wed, 11 Mar 2015 07:05:39 -0500 > Subject: Re: [Rcpp-devel] Question about Rcpp and boost > From: [email protected] > To: [email protected] > CC: [email protected] > > > I think you want to check your DESCRIPTION file. I

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Dirk Eddelbuettel
On 11 March 2015 at 07:05, Charles Determan Jr wrote: | I think you want to check your DESCRIPTION file.  I believe you need to have | the 'LinkingTo:' option to also include BH. Beat me to it :) That is exactly it -- "LinkingTo: BH" is what you need (and our documentation says so in many pl

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
Thank you very much for your answer. I have changed the DESCRIPTION file to include: LinkingTo: Rcpp, BH (before: LinkingTo: Rcpp) but it continues giving the same build error. Date: Wed, 11 Mar 2015 07:05:39 -0500 Subject: Re: [Rcpp-devel] Question about Rcpp and boost From: [email protected] To

Re: [Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Charles Determan Jr
I think you want to check your DESCRIPTION file. I believe you need to have the 'LinkingTo:' option to also include BH. Regards, Charles On Wed, Mar 11, 2015 at 6:58 AM, Jordi Molins Coronado < [email protected]> wrote: > Hello, > > I know this question has been answered before (and I ha

[Rcpp-devel] Question about Rcpp and boost

2015-03-11 Thread Jordi Molins Coronado
Hello, I know this question has been answered before (and I have searched for it), but I cannot figure out a solution: I want to use boost with Rcpp, basically to be able to use numbers with a higher precision than a double. I am comfortable using the inline package for small c++ functions, I ha