[Rcpp-devel] Using Rcpp in C++

soeren.vogel at uzh.ch soeren.vogel at uzh.ch
Fri Jun 10 15:06:25 CEST 2011

Hello I want to experiment a little with Rcpp, however, as a newby I don't get it to work, e.g.:

#include <iostream>
#include <Rcpp.h>
int main()
    using namespace Rcpp;
    RNGScope scope;
    std::cout << runif( 1, 0, 1) << std::endl;
    return 0;

How can I get it to work? Thanks, Sören

More information about the Rcpp-devel mailing list