Wednesday, 15 May 2013

osx - Rcpp error, learning Rcpp and C++ on mac -



osx - Rcpp error, learning Rcpp and C++ on mac -

i've decided start learning rcpp , c++ can create aspects of r code faster. start i'm using tutorial hadley has in devtools wiki. have c++ compiler on machine in it's mac , have xcode installed on - i'm told puts c++ compiler on machine. seek run first example:

cppfunction(' int one(){ homecoming 1; } ')

however, happens is:

sh: make: command not found error in sourcecpp(code = code, env = env, rebuild = rebuild, showoutput = showoutput, : error 1 occurred building shared library.

i'm guessing have setup issue, i'm not sure. general c++ knowlege i've started reading absolute c++ savitch, far not tell setting machine compiler etc, because you're instructed utilize called myprogramminglab tells if got reply right or not , gives output, don't go through compilation or that.

thanks, ben w.

errors of type sh: foo: command not found pretty obvious. lacking make command. install it, , seek again. or if xcode installs outside of path, add together path.

c++ osx r compiler-construction rcpp

No comments:

Post a Comment