Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. > library(Rcpp)
  2. > library(inline)
  3. >
  4. > fx <- cxxfunction(signature( x = "numeric" )
  5. +                   ,
  6. +                   'NumericVector xx(x);
  7. + return wrap( std::accumulate( xx.begin(), xx.end(), 0.0));
  8. +                   ',
  9. + plugin = "Rcpp")
  10. Error in dyn.load(libLFile) :
  11.   unable to load shared object '/var/folders/p0/79v696gn5h76s0gvq9gw1qmr0000gn/T//RtmpaGMrcx/fileea5c6e546c96.so':
  12.   dlopen(/var/folders/p0/79v696gn5h76s0gvq9gw1qmr0000gn/T//RtmpaGMrcx/fileea5c6e546c96.so, 6): Symbol not found: ___emutls_get_address
  13.   Referenced from: /usr/local/lib/libstdc++.6.dylib
  14.   Expected in: /Library/Frameworks/R.framework/Resources/lib/libgcc_s.1.dylib
  15.  in /usr/local/lib/libstdc++.6.dylib