On 18 August 2010 at 09:10, Romain Francois wrote: | Yep, that is because of RcppExport. You only use RcppExport when you | call the function from .Call in R. | | RcppExport is an alias to extern "C" so it essentially voids the | C++-ness of the function it is applied to.
For completeness: It also provided a hook to add __declspec(dllexport) for the one operating system that needed it when building DLLs. We currently don't build DLLs there so this is moot but the option may be useful. Hence RcppExport and not just extern "C". Also: On 18 August 2010 at 08:41, Romain Francois wrote: [...] | Should we have something similar for Rcpp ? | | #if defined(RCPP_VERSION) && RCPP_VERSION >= Rcpp_Version(0, 8, 5) | ... | #endif Sounds good to me! Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
