[Rcpp-devel] Segmentation faults

Brook Milligan brook at nmsu.edu
Fri Dec 6 22:47:48 CET 2019


I am trying to build some simple test cases of Rcpp.  One of the simplest I can think of is below.

#include <Rcpp.h>

int main ()
{
  auto i = Rcpp::IntegerVector::create(1,2);
}

This compiles fine and links against libR, but segmentation faults when run.  My test system is a Mac with clang++.

Is there an obvious reason this should not work?

Cheers,
Brook



More information about the Rcpp-devel mailing list