On Tue, May 5, 2015 at 10:52 PM, Kevin Ushey <kevinus...@gmail.com> wrote: > Your error: > > Error in dyn.load(file, DLLpath = DLLpath, ...) : > unable to load shared object > '/Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so': > dlopen(/Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so, 6): Symbol > not found: __ZNSoD0Ev > > > says some (mangled) symbol named `__ZNSoD0Ev` could not be found. Using the > online demangling tool at http://demangler.com/, I see this symbol is: > > _std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() > > > which should be provided by your C++ standard library. > > Given that you're using `g++` on OS X, I'm assuming you installed gcc from > macports or something like that, but either that was provided without a > standard library (libstdc++), or it's distributed in such a way that > libstdc++ isn't located on its default library search path. > > So, you should either: > > 1. Figure out where you can get libstdc++ for the g++ compiler you've > obtained, or > 2. Just use Apple's command line tools (clang etc) as that will 'just work'.
I use install.packages(). How to clang with it? -- Regards, Peng _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel