[Rd] linking R.dll 32bit in Win64

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jan 10 16:04:37 CET 2014

On 10/01/2014 10:09, Иван Мартовский wrote:
>   I've a usual installation of R (the both versions 32 et 64) on Win7 64 bit are installed.
> I'm trying to link my dll (32bit) to R.dll (32bit) from the folder C:\Program Files\R\R-2.15.3\bin\i386
> when, from 32bit version of R, loading the package containing my dll (32bit) which is linked to R.dll (32bit), there is OnLoad() error.
> because R.dll (32bit) cannot find appropriate windows dlls of 32bit (kernel32.dll, msvcrt.dll,...)
> I attached the screenshot of dependency walker for more detail.
>  From this picture we can see that R.dll is linked to 64bit windows dlls.
> My question : how have I to build my 32bit dll ? which linker options to use ? /DELAYLOAD ?

There was no screenshot by the time this was distributed.  See the 
posting guide at http://www.r-project.org/posting-guide.html .

But Windows automatically finds the correct system DLLs - see the MSDN 
documentation for LoadLibrary.   So we have nothing at all to go on 
here, and no special options are needed nor used.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-devel mailing list