[Rcpp-devel] Help with Installing RInside examples on OSX

Conrad Bielski conrad_bielski at yahoo.com
Tue Oct 15 12:56:05 CEST 2013

I wanted to setup Rcpp development on my mac (osx 10.7.5) but I'm having trouble when compiling the RInside examples (linking). I was able to get started quite easily on Ubuntu and I tried to use the same procedure on the mac. I hope that there is a simple solution to get going on the mac.

Setup Procedure:
1. Downloaded the R binaries for OSX (R version 3.0.2 (2013-09-25) -- "Frisbee Sailing")
2. Installed Rcpp (0.10.5) and RInside (0.2.10)from within R (used install.packages(file_name_and_path, repos = NULL, type="source"))
3. ran CMake (2.8.12) on the RInside examples/standard in a separate build directory
4. ran make (compiler is Clang 4.0)

So the problem is that I get a linking problem and I'm not sure how to fix it. On Ubuntu, the linking was automatic so I'm a little lost how to point to the required

33 warnings generated.
Linking CXX executable rinside_callbacks0
Undefined symbols for architecture x86_64:
  "RInside::RInside(int, char const* const*, bool, bool, bool)", referenced from:
      _main in rinside_callbacks0.cpp.o
  "RInside::~RInside()", referenced from:
      _main in rinside_callbacks0.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rinside_callbacks0] Error 1
make[1]: *** [CMakeFiles/rinside_callbacks0.dir/all] Error 2
make: *** [all] Error 2

Thanks in advance for your help,
Conrad :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131015/013dc09d/attachment.html>

More information about the Rcpp-devel mailing list