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<br><br><div class="gmail_quote">2011/10/11 Vijay Mathew <span dir="ltr"><<a href="mailto:mathew.vijay@gmail.com">mathew.vijay@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is there some way I can directly load a shared library into the Gambit<br>
interpreter?<br>
I am aware of the C-Interface. But I just want to load a shared<br>
library and call a C function that takes an integer.<br>
Is something like the following possible in Gambit?<br>
<br>
    > (define lib (open-lib "my.so"))<br>
    > (define c-fn (find-fn lib "simple-c-function"))<br>
    > (c-fn 100)<br>
    > (close-lib lib)<br>
<br>
Thanks,<br>
<br>
--Vijay<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br>