On Wed, Aug 18, 2010 at 7:22 AM, Dirk Eddelbuettel <[email protected]> wrote:

>
> 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".
>

Using the decoration __declspec(dllexport) is no longer needed because the
R build process uses Rtools/bin/nm.exe to extract *all* symbols to be
exported, not just the symbols that are intended to be called from R.
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to