Hi Vijay, there is no libffi binding today. If you implement one, feel free to release it open source via the Wiki as I'm sure it'd be appreciated by others also. Mikael

2011/10/11 Vijay Mathew <mathew.vijay@gmail.com>
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
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list