On 15/01/2008, Mauricio Toro <mauriciotorob(a)gmail.com> wrote:
> Error: Unable to load foreign library:
> /home/mauriciotoro/Desktop/GECOL2/gecol20/glue.so
>
> This wrapper used CFFI. How can I get futher information about
> why cannot load the foreign library?
Unless you're using a very old version, CFFI should tell you why it
failed to load the foreign library. Also, try loading that library
with another Lisp, e.g. SBCL. If that doesn't help either, write a
small C program that calls dlopen().
HTH
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Hi!
cffi 0.9.2 doesn't work correctly with Allegro CL 8.1
There's at least one problem in with-foreign-pointer:
ACL's with-stack-fobject wants keyword arguments since 8.1
http://www.franz.com/support/documentation/current/doc/operators/ff/with-st…
solution:
change line 140 in cffi-allegro.lisp from
(ff:with-stack-fobject (,var :char :c ,size-var)
to
(ff:with-stack-fobject (,var :char :allocation :c :size ,size-var)
There might be more problems, I'm just reporting the one that I stumbled upon today.
Greetings
Marc