You dynamically load a static library. Have a look at how CFFI's test suite builds libtest.c.
HTH, Luís On Mon, Jun 13, 2016, 20:35 Marco Antoniotti <marc...@cs.nyu.edu> wrote: > 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 > > >