Ok, in your post above change this:
$ gcc gtk1.c -o gtk1 `pkg-config -cflags -libs gtk+-2.0`
to this:
$ gcc gtk1.c -o gtk1 `
pkg-config --cflags --libs gtk+-2.0`
You need
two dashes before "clfags" and "libs" to get the output you desire. Consider this:
Code:
tom@linux:~$ pkg-config -cflags -libs gtk+-2.0
-cflags: unknown option
tom@linux:~$ pkg-config --cflags --libs gtk+-2.0
-I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/cairo -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -L/opt/gnome/lib -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
tom@linux:~$
Give that a try.
Peace...