It works!
I used the configure.ac script to re-generate proper Makevars.
The tricky point is that I had to manually add directives to object
files and hide the config script, otherwise the Makevars file gets
rewritten when rebuilding. I feel like there must be some more elegant
way to do it..
Fabio,
The RcppGSL package ships its own example package:
edd@max:~$ cd /tmp/
edd@max:/tmp$ cp -vax
/usr/local/lib/R/site-library/RcppGSL/examples/RcppGSLExample/ .
‘/usr/local/lib/R/site-library/RcppGSL/examples/RcppGSLExample/’ ->
‘./RcppGSLExample’
‘/usr/local/lib/R/site-library/RcppGSL/exa
Done already, without success. The whole Makevars file is as follows (I
didnt paste it before):
OBJECTS.PnuChart = ngraph.o RcppExports.o
OBJECTS.PnuChart = PnuChart/Finder.o
OBJECTS = $(OBJECTS.PnuChart)
PKG_CPPFLAGS = -DPRINTLOG -I"../inst/include" -I. -pthread
PKG_LIBS = -lcurl -lpthread `$(
You need to link to GSL as well. RcppGSL provides the appropriate flags
within `RcppGSL::LdFlags()`. See what RcppGSL does itself in its configure
scripts:
https://github.com/eddelbuettel/rcppgsl/blob/2849b8dd777c8057e524c2141dfeaa8e28840350/inst/skeleton/configure.win
.
Kevin
On Tue, May 5, 201
Ok, I found the 'scrm' Rcpp package: here the file scrmr.cpp provides an
interface for calling the scrm C++ application from R. following their
solution, I modified my Makevars file, adding:
OBJECTS.PnuChart = ngraph.o RcppExports.o
OBJECTS.PnuChart = PnuChart/Finder.o
OBJECTS = $(OBJECTS.PnuCh
On 5 May 2015 at 16:28, Fabio Tordini wrote:
| Here is the actual (simple) code:
|
| Finder *f = new Finder();
| f->parseFiles(str_g, str_f, str_s);
So where is Finder implemented?
The computer tells you that you want to use it, but don't supply it.
Dirk
--
http://dirk.eddelbuett
Hi Dirk, thanks for your reply!
On 05/05/2015 04:14 PM, Dirk Eddelbuettel wrote:
On 5 May 2015 at 14:30, Fabio Tordini wrote:
| Everything compiles fine, but then it fails when loading the package:
|
| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ..
On 5 May 2015 at 14:30, Fabio Tordini wrote:
| Everything compiles fine, but then it fails when loading the package:
|
| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
|unable to load shared object
| '/home/fabio/R/x86_64-pc-linux-gnu-librar
Hi all,
I have a C++ application I developed, with its headers (.hpp) and
related .cpp files. Within this project I use a templated header-only
library for efficient parallel computing using pthreads, as well as the
GSL library.
My intent is to use this application within a R package, and I use