[Rcpp-devel] Compile errors in first attempt to use Rcpp/RInside
Dirk Eddelbuettel
edd at debian.org
Sat Apr 13 22:47:22 CEST 2013
Paul,
On 13 April 2013 at 15:10, Paul Johnson wrote:
| My test program is:
|
| #include <RInside.h>
| int main(int argc, const char * argv[])
| {
| RInside R(argc, argv); // create an embedded R instance
| R["txt"] = "Hello, world!\n"; // assign a char* (string) to 'txt'
| R.parseEvalQ("cat(txt)"); // eval the init string, ignoring any
| returns
| return 0;
| }
That appears identical to examples/standard/rinside_sample0.cpp (even though
for some reason you do not say so).
All examples in that directory built via the Makefile, so either one of
make
make rinside_sample0
should do. If they don't, then your setup is busted. As I do have not have
access to OS X I cannot help and meekly suggets you ssh to a simpler-to-use
system. Based on prior email exchanges with you I seem to recall that you
should have access to a RedHat/CentOS and/or Debian/Ubuntu system.
Try that to convince yourself _the file you are looking at_ is fine.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list