Re: [Rcpp-devel] Fwd: Rcpp and rpy2

2011-08-15 Thread Jonas Rauch
Sorry, I don't have a small example. I could come up with one, but that would be purely artificial. I am using Rcpp and rpy2 so I can use OpenOpt, a python optimization framework with interfaces to a ton of different open source and proprietary nonlinear and linear solvers. My objective function i

Re: [Rcpp-devel] Fwd: Rcpp and rpy2

2011-08-15 Thread Dirk Eddelbuettel
On 15 August 2011 at 10:00, Jonas Rauch wrote: | Just to close this up: | I found out that my Rcpp installation must have occured when my R was not built | with shared lib. Thus Rcpp was not linked to libR. Just reinstalling Rcpp from | source solved the problem. That makes sense, and thank you

Re: [Rcpp-devel] Fwd: Rcpp and rpy2

2011-08-15 Thread Jonas Rauch
Just to close this up: I found out that my Rcpp installation must have occured when my R was not built with shared lib. Thus Rcpp was not linked to libR. Just reinstalling Rcpp from source solved the problem. Regards, Jonas On Fri, Aug 12, 2011 at 3:16 PM, Dirk Eddelbuettel wrote: > > On 12 Aug

Re: [Rcpp-devel] Fwd: Rcpp and rpy2

2011-08-12 Thread Dirk Eddelbuettel
On 12 August 2011 at 14:33, Jonas Rauch wrote: | Hi Dirk and Romain, | | Aparrently libR is not loaded by rpy2, at least not in a way such that Rcpp can | access it. I have solved the problem by adding -lR to the linker flags when | building Rcpp. Since for normal use of Rcpp from R this does no

[Rcpp-devel] Fwd: Rcpp and rpy2

2011-08-12 Thread Jonas Rauch
Hi Dirk and Romain, Aparrently libR is not loaded by rpy2, at least not in a way such that Rcpp can access it. I have solved the problem by adding -lR to the linker flags when building Rcpp. Since for normal use of Rcpp from R this does not make a difference, would you mind adding this to the Make