[plt-scheme] using the ffi (ffi-lib)

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Mon Apr 30 07:01:42 EDT 2007

L.S.,

I'm doing this for sqlite3 on a Linux system (slackware 8):

ldconfig -p | grep sqlite3 --> /usr/local/lib/libsqlite3.so

mzscheme:
 >(require (lib "foreign.ss"))
 >(ffi-lib "libsqlite3")
ffi-lib: couldn't open "libsqlite3.so" (libsqlite3.so: cannot open 
shared object file: No such file or directory)

 === context ===
repl-loop

 > (ffi-lib "/usr/local/lib/libsqlite3")
#<ffi-lib>

Why doesn't it work with only "libsqlite3"?

--hans









Posted on the users mailing list.