[Rcpp-devel] Embedding RInside in C++ project

2015-07-23 Thread Ulf Mertens
Dear list, I am working on a project in C++ where I have to use Bayesian Statistics quite extensively. I coded my own Metropolis Hasting Sampler but since it is not working that well, I wanted to call rstan from within C++ via RInside. I already wrote the appropriate RInside/Rcpp code but I don't

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-23 Thread Ulf Mertens
uettel wrote: > > Hi Ulf, > > On 23 July 2015 at 15:53, Ulf Mertens wrote: > | I am working on a project in C++ where I have to use Bayesian Statistics > quite > | extensively. I coded my own Metropolis Hasting Sampler but since it is > not > | working that well, I wanted to

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-24 Thread Ulf Mertens
:=$(wildcard *.cpp) header := $(wildcard *.h) programs := $(sources:.cpp= header:.h=) Thanks Ulf On Thu, Jul 23, 2015 at 5:14 PM, Ulf Mertens wrote: > Hi, > > thanks for your mail. > > I don't have to use cmake for my project. It's totally fine to use

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-24 Thread Ulf Mertens
for your help Ulf On Fri, Jul 24, 2015 at 1:13 PM, Dirk Eddelbuettel wrote: > > On 24 July 2015 at 10:18, Ulf Mertens wrote: > | Hi, > | > | I just looked into the GNUMakefile. I think I just have to only change > those > | two lines, right? > | > | sources :=

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-24 Thread Ulf Mertens
/standard. Ulf On Fri, Jul 24, 2015 at 2:00 PM, Dirk Eddelbuettel wrote: > > Ulf, > > On 24 July 2015 at 13:47, Ulf Mertens wrote: > | Alright, I left the GNUMakefile as it is and copied it into my program > > Err, "the GNUmakefile"? Which one? There are seven dif

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-24 Thread Ulf Mertens
Ok, I figured it out: The error stems from the fact that one of my source files was named run.cpp. I renamed it and now (at least) this error is gone. Ulf On Fri, Jul 24, 2015 at 2:11 PM, Ulf Mertens wrote: > The question is still the same. I embedded RInside into my project but > don&