[R] specifying exports for R CMD SHLIB

martin@ist.org martin at ist.org
Tue Sep 28 15:33:18 CEST 2004

Yes it is Windows and I'm using a cygwin version of gcc to compile.
I thought it would be 'cleaner' to have only the functions exported 
that are intended to be called from R. It is no big deal though, I 
just wondered if I'm using the wrong format for the .def file or 
making another simple mistake.
I will also have another look at the R-ext manual like Jari suggested.

Thanks for your help, 

Martin Keller-Ressel

Am Tue, 28 Sep 2004 14:06:20 +0100 (BST) hat Prof Brian Ripley 
<ripley at stats.ox.ac.uk> geschrieben:

> What OS?
> If this is Windows, you cannot (and why do you want to, as the DLL 
> just
> to be loaded into R?).
> On Tue, 28 Sep 2004 martin at ist.org wrote:
>> How can I specify which functions should be exported when I build a
>> shared library with 'R CMD SHLIB foo.c'??
>> I tried putting a file named foo.def in the same directory with the
>> line 'EXPORTS' and the names of the functions to be exported, but 
>> file is deleted in the build process.


More information about the R-help mailing list