CFFI load-foreign-library problem
Marco Antoniotti
marcoxa at cs.nyu.edu
Mon Jun 13 19:34:59 UTC 2016
Hi
sorry for the noise… I have gotten confused (among other things) about the status of CFFI’s mailing lists.
In any case, I have the following problem.
This is in my "test" file:
(cffi:define-foreign-library cl-autowrap-tests-lib
(t "cl-autowrap-test.a"))
This is what I get on LWM.
CL-USER 15 > (cffi:load-foreign-library 'cl-autowrap-tests::cl-autowrap-tests-lib)
Error: Unable to load foreign library (CL-AUTOWRAP-TESTS-LIB).
Could not register handle for external module CL-AUTOWRAP-TESTS::CL-AUTOWRAP-TESTS-LIB:
no suitable image found. Did find:
/Users/marcoxa/Projects/Lang/CL/tests/cl-autowrap/cl-autowrap-test.a: file too short.
1 (continue) Try loading the foreign library again.
2 Use another library instead.
3 (abort) Return to level 0.
4 Return to top loop level 0.
Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.
It obviously appears that something may be amiss with the .a (static) generation. My C/C++ fu us very rusty.
Any ideas?
Cheers
--
MA
--
Marco Antoniotti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20160613/430422c8/attachment.html>
More information about the cffi-devel
mailing list