[gambit-list] FFI
Vijay Mathew
mathew.vijay at gmail.com
Tue Oct 11 10:47:58 EDT 2011
Is there some way I can directly load a shared library into the Gambit
interpreter?
I am aware of the C-Interface. But I just want to load a shared
library and call a C function that takes an integer.
Is something like the following possible in Gambit?
> (define lib (open-lib "my.so"))
> (define c-fn (find-fn lib "simple-c-function"))
> (c-fn 100)
> (close-lib lib)
Thanks,
--Vijay
More information about the Gambit-list
mailing list