[cffi-devel] trouble loading dll via cff:use-foreign-library
Mirko Vukovic
mirko.vukovic at gmail.com
Mon Feb 18 20:39:38 UTC 2008
On Mon, Feb 18, 2008 at 2:18 PM, Luís Oliveira <luismbo at gmail.com> wrote:
> On 18/02/2008, Mirko Vukovic <mirko.vukovic at gmail.com> wrote:
>
> > CFFI-USER> (setf *target* #p"/bin/cyggsl-0.dll")
> > #P"/bin/cyggsl-0.dll"
> > CFFI-USER> (probe-file *target*)
> > #P"/bin/cyggsl-0.dll"
> > CFFI-USER> (cffi:load-foreign-library *target*)
> >
> > and the error message:
> >
> > Unable to load foreign library (NIL).
> > FFI::FOREIGN-LIBRARY: Cannot open library "/bin/cyggsl-0.dll": "No
> > such file or directory"
> > [Condition of type LOAD-FOREIGN-LIBRARY-ERROR]
>
> I'm out of ideas, sorry. It works for me on Cygwin:
>
> [3]> (cffi:load-foreign-library "/bin/cyggsl-0.dll")
> #<CFFI::FOREIGN-LIBRARY #x1030C799>
>
> [4]> (lisp-implementation-version)
> "2.44 (2008-02-02) (built on reini [192.168.1.7])"
> [5]> (software-version)
> "GNU C 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)"
>
> --
>
>
> Luís Oliveira
> http://student.dei.uc.pt/~lmoliv/
>
Well, in one sense, that is good news: it can work. I just need to
look harder to see where it is failing on my machine.
Can you just tell me what are the permission settings of the dll's
that you have? (I'm grasping at straws here)
Thanks,
Mirko
More information about the cffi-devel
mailing list