s-news
[Top] [All Lists]

Re: dll values

To: Juan Ramon Gonzalez <jrgonzalez@ico.scs.es>
Subject: Re: dll values
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Tue, 26 Jun 2001 16:20:06 +0100 (BST)
Cc: <s-news@lists.biostat.wustl.edu>
In-reply-to: <038001c0fe4d$b1b15660$1100a8c0@ico.scs.es>
On Tue, 26 Jun 2001, Juan Ramon Gonzalez wrote:

> I have created a DLL library with Fortran. When I load this library with the
> function dll.load from my computer, I get the value 1 that it corresponds to
> "DLL is now loaded". However, if I try to load it from another computer
> it gives the value -1157.
>
> This value is not a documented value from the list that you can find in the 
> help
> of dll.load.
>
> Why don't I load it correctly the DLL from another computer?

Well, assuming this is some recentish version of S-PLUS (4.0, 4.5 or 2000)
on Windows, it is almost certainly because the DLL you built depends on
some compiler library which is not on the other computer.

Get yourself a copy of pedump.exe off the net (one place is
http://www.stats.ox.ac.uk/pub/Rtools/tools.zip) and run

pedump.exe -i my.dll

and it will tell you what DLLs it is looking for.

If you have VC++, dumpbin.exe /imports does the same job, less well.

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>