[cffi-devel] support for .a libraries
James Bielman
jamesjb at jamesjb.com
Fri Jan 20 16:11:49 UTC 2006
Alexis Gallagher <public at alexisgallagher.com> writes:
> I was wondering if define-foreign-library can currently handle
> libraries that are in the "ar" archive format.
No, as far as I know, the ability to load static libraries is unique
to CMUCL and Lisp implementations that compile via C.
> I keep getting an error "Unable to load foreign library". I thought
> it wasn't looking in the right load path, but I tried specifying the
> absolute path, directly and with *foreign-libraries-directory*, but
> that didn't help.
You will need to load a shared library instead, if possible. Most
Lisp FFIs are defined in terms of 'dlopen' or the equivalent.
James
More information about the cffi-devel
mailing list