-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm just starting to learn gtk and when I try to compile the below program, I get the below error message:
- --- Program --- #include <gtk/gtk.h> int main (int argc, char *argv[]) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return 0; } - ---Err Message from gcc--- [EMAIL PROTECTED] chris]$ gtk-config --cflags - -I/usr/lib/glib/include -I/usr/X11R6/include [EMAIL PROTECTED] chris]$ gcc -I/usr/lib/glib/include -I/usr/X11R6/include -ogtk source/gtk.c /tmp/ccc00721: In function `main': /tmp/ccc00721(.text+0xf): undefined reference to `gtk_init' /tmp/ccc00721(.text+0x19): undefined reference to `gtk_window_new' /tmp/ccc00721(.text+0x2a): undefined reference to `gtk_widget_show' /tmp/ccc00721(.text+0x32): undefined reference to `gtk_main' I'm running gtk+ 1.0.6 and gtk+ 1.1.2, with the dev and dbg libraries for 1.0.6 installed; any suggestions? thanks, Chris <- Visit Me At <http://www.frostnet.advicom.net/chris/> -> <------------------------------------------------------------------------------> Public PGP Key: Email [EMAIL PROTECTED] with the subject "retrieve pgpkey" or visit <http://www.frostnet.advicom.net/chris/pgp_key.phtml> -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv iQA/AwUBNn/IHOEzIlbKpewXEQIXhgCg3P5thTvQW8xfBXLk1mIXjNdT2BwAoOsS bh+YI99BSO2JfuSeYuI1ETZ8 =yDPv -----END PGP SIGNATURE-----