s-news
[Top] [All Lists]

Re: dll load

To: Mandans <mandans_p@yahoo.com>
Subject: Re: dll load
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Thu, 29 May 2003 15:16:21 +0100 (BST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <20030528205336.53406.qmail@web14204.mail.yahoo.com>
You have given us very little to go on.  I've checked that in S-PLUS 6.1
on Windows

dyn.load("c:/S/S+6libs/libsvm/S.dll")

works, so there appears to be something wrong with your DLL. A guess
(since it is a very long time since I had any problems with this)  is that
either the file is not a valid DLL or it has unsatisfied dependencies.  
pedump.exe will check both possibilities out for you.

On Wed, 28 May 2003, Mandans wrote:

> Hi everybody,
> 
> Thanks for all the great suggestions and help this
> forum has been providing.
> 
> I am trying to load a ".dll" file and it is giving me
> an error message. I was wondering anyone know how to
> fix the problem.
> 
> I am using Splus 6.0 Rel 2 on NT 4.0 Service Pack 6.
> 
> The command  
> ----
> dyn.open ("D:/JP/A.dll").
> -----
> 
> Message
> -------
> > dyn.open ("D:/JP/A.dll").
> D:/JP/A.dll : The parameter is incorrect.
> "D:/JP/A.dll" can't be opened as a DLL; check how it
> was loaded in: dyn.open("D:/JP/A.dll").
> ----
> 
> Second try
> --
> dll.load ("D:/JP/A.dll").
> 
> ----
> Message
> -------
> > dll.load ("D:/JP/A.dll").
> D:/JP/A.dll : The parameter is incorrect.
> [1] 0
> 
> 
> The dll code was compiled with gcc.

Which version of gcc for which target, using which commands?

This is not really an S question and I suggest you seek local help with 
your compilation setup.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>
  • dll load, Mandans
    • Re: dll load, Prof Brian Ripley <=