[plt-scheme] foreign.ss dll path

From: Yoav Goldberg (yoav.goldberg at gmail.com)
Date: Fri Oct 14 19:23:33 EDT 2005


I used (this-expression-source-directory), and that almost worked -
(ffi-lib ...) finds the dll, but unfortunately, the dll tries to load
*another* dll in the same directory. Do you have any idea how I can
get around that?


On 10/14/05, Eli Barzilay <eli at barzilay.org> wrote:
> On Oct 13, Yoav Goldberg wrote:
> > Hi,
> >
> > Where does ffi-lib look for the .dll file?
> >
> > When I make a collection using foreign.ss, where should I put the dlls
> > and related files so that they will be found when using the collection
> > with (require (lib ...)) ?
> It will use the OS facility (for example, dlopen on Unix tries to look
> in your DL_LIBRARY_PATH) and in the current directory.  If you want to
> distribute binary libraries with Scheme code, then it is best to use
> build-path with (this-expression-source-directory) to get a name that
> is relative to the source name.
> --
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.