On 15 May 2011 at 17:22, Douglas Bates wrote: | On May 15, 2011 5:17 PM, "Dirk Eddelbuettel" <e...@debian.org> wrote: | > On 15 May 2011 at 21:42, Jelmer Ypma wrote: | > | Is this the recommended way of adding linker and cxx flags to packages | > | depending on other R packages with modules? I tried to look at | > | > We simply show no example of definiting object code in one package and having | > other packages use it -- with the exception of the Rcpp package itself. And | > there it takes quite some effort to make this happen. | > | > You could look at what lme4 and Matrix do; this is documented in the 'Writing | > R Extensions' manual under '[Section] 5.4 Registering native routines'. | | Unfortunately that approach doesn't work with C++ classes and methods, which is | one of the reasons that Rcpp linkage has to be done the way that it is. The | exporting of symbols a as done by Matrix is restricted to C function entry | points.
Ah, yes, that aspect too. Meant to mention, thanks for catching it. In short: no beans. You may have to build one larger package. Dirk -- Gauss once played himself in a zero-sum game and won $50. -- #11 at http://www.gaussfacts.com _______________________________________________ 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