[plt-scheme] FFI problems

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Wed Sep 26 11:25:18 EDT 2007

Henk Boom wrote:
> On 25/09/2007, Jon Rafkind <workmin at ccs.neu.edu> wrote:
>   
>> Should be
>> (define gtk-lib (ffi-lib "libgtk-x11-2.0"))
>>     
>
> Thank you, it works fine now. What is the other libgtk library there for then?
>   
gtk1.x I think.

gtk 1:
$ gtk-config --libs
-L/usr/lib64 -L/usr/lib64 -lgtk -lgdk -rdynamic -lgmodule -lglib -lXi
-lXext -lX11 -lm

gtk+-2.0:
$ pkg-config gtk+-2.0 --libs
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0


Posted on the users mailing list.