In order to compile the base example with GTK 2 on CygWin first instyll libgtk2.0-devel. Then set the C include path:
export C_INCLUDE_PATH=/usr/include/gtk-2.0/:/usr/include/gtk-2.0/gtk/:/usr/include/cairo:/usr/include/pango-1.0/:/usr/include/glib-2.0/:/usr/include/gdk-pixbuf-2.0/:/usr/include/atk-1.0/:/lib/glib-2.0/include/:/lib/gtk-2.0/include |
Invoke gcc as follow:
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` |
(Note the pkg-config.)