<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#3333FF">
    Dear list,<br>
    <br>
    Getting back to Rcpp after a several month hiatus, during which I
    upgraded to R_2.15.1. Loading modules no longer works.<br>
    <br>
    A simple example, from the docs (Rcpp-modules p6):<br>
    <br>
    In a clean R session:<br>
    <br>
    >require(Rcpp)<br>
    >require(inline)<br>
    >inc <- '<br>
      using namespace Rcpp;<br>
      double norm( double x, double y ) {<br>
      return sqrt( x*x + y*y );<br>
      }<br>
      RCPP_MODULE(mod) {<br>
      function( "norm", &norm );<br>
      }<br>
     '<br>
    >fx <- cxxfunction(signature(), plugin="Rcpp", include=inc)<br>
    Error in dyn.load(libLFile) : <br>
      unable to load shared object
    '/tmp/RtmpbGnBB9/file2eb333e010d3.so':<br>
      /tmp/RtmpbGnBB9/file2eb333e010d3.so: undefined symbol:
    _ZN4Rcpp8internal14r_vector_startILi14EdEEPT0_P7SEXPREC<br>
    <br>
    <br>
    What have I forgotten about?<br>
    <br>
    > sessionInfo()<br>
    R version 2.15.1 (2012-06-22)<br>
    Platform: x86_64-unknown-linux-gnu (64-bit) ...<br>
    other attached packages:<br>
    [1] inline_0.3.10 Rcpp_0.10.1<br>
    <br>
    Note that the example code still works under R 2.13.2, Rcpp_0.9.10
    and inline_0.3.8.<br>
    <br>
    Thanks for the help<br>
    <br>
    +glenn<br>
    <pre class="moz-signature" cols="66">-- 
--------------------------------------------------------------
Pirating science, because open access isn't always open enough
<a class="moz-txt-link-abbreviated" href="http://www.scipirate.com">www.scipirate.com</a>                                   @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
     <a class="moz-txt-link-freetext" href="http://bioinf.mpi-inf.mpg.de/~lawyer">http://bioinf.mpi-inf.mpg.de/~lawyer</a>

</pre>
  </body>
</html>