Problem with gtk-demo.c compilation


I would like to have a SDL window ‘included’ in a Gtk widget; this subject
has already been asked here; I’ve tried the gtk-demo.c from the lidsdl doc,
but I have this error at the compilation :

undefined reference to `gtk_accel_group_attach’

I understand that this demo works only with SDL1.3 and not 1.2; however this
demo has been available since a long time, so it it still possible to have
it working with SDL1.3

Anyway I tried to compile gtk-demo.c with both SDL1.2 :

gcc -o test pkg-config gtk+-2.0 --libs --cflags -lSDL gtk-demo.c

and SDL-1.3:

gcc -o test pkg-config gtk+-2.0 --libs --cflags
$(/usr/local/bin/sdl-config --cflags --libs) gtk-demo.c

but I still get the same error

Thank you

View this message in context:
Sent from the SDL mailing list archive at