From ivan.martovskiy at mail.ru  Fri Jan 10 11:09:35 2014
From: ivan.martovskiy at mail.ru (=?UTF-8?B?0JjQstCw0L0g0JzQsNGA0YLQvtCy0YHQutC40Lk=?=)
Date: Fri, 10 Jan 2014 14:09:35 +0400
Subject: [Rd] =?utf-8?q?linking_R=2Edll_32bit_in_Win64?=
Message-ID: <1389348575.1402252@f325.i.mail.ru>

 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 ?



[Rd] =?utf-8?q?linking_R=2Edll_32bit_in_Win64?=
=?UTF-8?B?0JjQstCw0L0g0JzQsNGA0YLQvtCy0YHQutC40Lk=?=