Re: [R] Rcpp segmentation faults on the simplest code

2011-04-14 Thread Dirk Eddelbuettel
On 14 April 2011 at 03:56, didu wrote: | Hi all, | | I'm new to R and Rcpp, and I'm trying to learn Rcpp with the simplest code | possible. My goal is to be able to call R functions from C++. Just to set the record straight here for purpose of the mailing list archive: the original poster had a s

[R] Rcpp segmentation faults on the simplest code

2011-04-14 Thread didu
Hi all, I'm new to R and Rcpp, and I'm trying to learn Rcpp with the simplest code possible. My goal is to be able to call R functions from C++. The code I'm trying to run is: #include #include #include #include int main(int argc, char* argv[]) { Rcpp::NumericVector v(1); r