Skip to content
Prev 10916 / 63424 Next

linking to R.dll on Win32 - issues with recent MinGW?

I was told that direct linking against foo.dll is not supported. One
problem is that the link priority order gets broken, and R.dll gets used
for things it should not be used for (malloc springs to mind).

You should be able to use libR.a, though.  It does not need to export 
R_Home, as you should know what that is when you call R_SetParams.
I would make sure that you are really using the mallocs you think you are.
(One day soon we will try to find a better solution for that, but that 
probably depends on me having a working Windows laptop again, as well as 
time to program on it.)

In a few places (Rlapack.dll as I recall) we have had to force in entry 
points to get things resolved in the right place: pedump will tell you 
where they are resolved, and at least this is done at link time and not 
run time so is fairly easy to track down.

Brian
On Thu, 23 Oct 2003, Simon Urbanek wrote: