[Rcpp-devel] iak problem -- dyn.load unable to load shared object

Glenn Lawyer lawyer at mpi-inf.mpg.de
Wed Dec 12 16:38:28 CET 2012


Dear list,

Getting back to Rcpp after a several month hiatus, during which I 
upgraded to R_2.15.1. Loading modules no longer works.

A simple example, from the docs (Rcpp-modules p6):

In a clean R session:

 >require(Rcpp)
 >require(inline)
 >inc <- '
   using namespace Rcpp;
   double norm( double x, double y ) {
   return sqrt( x*x + y*y );
   }
   RCPP_MODULE(mod) {
   function( "norm", &norm );
   }
  '
 >fx <- cxxfunction(signature(), plugin="Rcpp", include=inc)
Error in dyn.load(libLFile) :
   unable to load shared object '/tmp/RtmpbGnBB9/file2eb333e010d3.so':
   /tmp/RtmpbGnBB9/file2eb333e010d3.so: undefined symbol: 
_ZN4Rcpp8internal14r_vector_startILi14EdEEPT0_P7SEXPREC


What have I forgotten about?

 > sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-unknown-linux-gnu (64-bit) ...
other attached packages:
[1] inline_0.3.10 Rcpp_0.10.1

Note that the example code still works under R 2.13.2, Rcpp_0.9.10 
and inline_0.3.8.

Thanks for the help

+glenn

-- 
--------------------------------------------------------------
Pirating science, because open access isn't always open enough
www.scipirate.com                                   @piratesci

      Dr. Glenn Lawyer
      +352 661 967 244
      Max-Planck-Institut für Informatik
      Computational Biology and Applied Algorithmics
      Campus E1 4
      66123 Saarbrücken, Germany
      http://bioinf.mpi-inf.mpg.de/~lawyer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121212/3a951382/attachment.html>


More information about the Rcpp-devel mailing list