[plt-scheme] libc and the FFI

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Wed May 30 15:31:20 EDT 2007

Dear All,

If I need some function from libc, how can I
load the right library with ffi-lib?

/usr/lib/libc.so tends to be some LD script:

e.g. (for a recent debian installation)

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )

What to do?


Posted on the users mailing list.