From murdoch.duncan at gmail.com  Thu Mar 13 15:57:14 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Thu, 13 Mar 2014 10:57:14 -0400
Subject: [Rd] Fwd: C code and DLL file in the package
In-Reply-To: <CANuoaEGsw4WNM2kJyj7JyKqMM+UmfevmFzNRGkpmPzHdnhtSKg@mail.gmail.com>
References: <CANuoaEEqK2WoxVj8-OHQfxkHGvBqmx3N6=OdjfBvVudZKS9ipA@mail.gmail.com>
	<CANuoaEGsw4WNM2kJyj7JyKqMM+UmfevmFzNRGkpmPzHdnhtSKg@mail.gmail.com>
Message-ID: <5321C74A.7030500@gmail.com>

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



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