[plt-scheme] foreign.ss dll path
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!