Re: [Rd] lbfgsb from C/C++

2014-09-08 Thread axionator
de/Rcpp/storage/PreserveStorage.h:22:13: error: ‘class Rcpp::InternalFunction_Impl’ has no member named ‘update’ Any ideas what's going wrong? On Sun, Sep 7, 2014 at 4:46 PM, Dirk Eddelbuettel wrote: > > On 7 September 2014 at 12:30, axionator wrote: > | I would like to call

[Rd] lbfgsb from C/C++

2014-09-07 Thread axionator
Hi, I would like to call R's lbfgsb function from my C/C++ code by including R_ext/Applic.h and linking against libR. Currently, I am allocating memory for x (and the other input arrays for lbfgsb) in my C/C++ code via malloc/new. However, this gives a segmentation fault when executing the program