--- John Klein <jk271828@...> wrote:
> UPDATE: I changed the line to recombine the .o files
> into cpgplot.o into
> ld *.o -o cpgplot.o
> And it works fine now, the library loads, my ffi code sees it,
> and all is good.
ACK! more confusion. Mea Culpa. Actually, it works only because
I run load-foreign TWICE. I see the foreign symbols only
after the 2nd load-foreign.
I am lost. If I have a library libfoo.a that depends on (say)
libbar1.a libbar2.so libbar3.a, what is the proper, canonical,
correct way to load this library into sbcl?
What I am doing now is using ar to break up libfoo.a into .o files,
and recombining them into a big libfoo.o file with ld, and then loading
this libfoo.o TWICE. It works, but I am sure it is wrong.
(dotimes (i 2)
:libraries '("-lbar1.a" "/path/to/libbar2.so"
Do you Yahoo!?
Free Pop-Up Blocker - Get it now