[Rd] Fwd: C code and DLL file in the package

Duncan Murdoch murdoch.duncan at gmail.com
Thu Mar 13 15:57:14 CET 2014


On 13/03/2014 10:24 AM, binbin lu wrote:
> Hi,
>
> I am trying to compile a package, in which C code is used.
>
> When I was checking the package with the dll file under the sub-folder
> "SRC", a WARNING msg was returned:
> "Source packages should not contain undeclared executable files."
>
> When I exclued it from the folder, I got an ERROR msg:
>
> Error in library.dynam(lib, package, package.lib) :
>    DLL 'Cs2g' not found: maybe not installed for this architecture?
>
>
> Anyone knows how to solve this problem? Sorry for this naive question but I
> am really confused. Many thanks.

Put the C code for the DLL in "src" (not "SRC").  R will compile it for 
the platform where your package is being installed.

Duncan Murdoch



More information about the R-devel mailing list