Help with compile!!!

Hello, I need help with my compile! Here is my source,
I am just learning gtk, and I am kinda new to linux. I
have Linux 7.1, on an i686, I don't know the kernal
version (I don't even know if this is relevent). But
any way, I try to compile, and it says,

[root abc gtk]# gcc `pkg-config --cflags --libs
gtk+-2.0` -o gtk01 gtk01.c

/tmp/ccnSlwyn.o: In fuction `main':
/tmp/ccnSlwyn.o(.text+0x4d): undefined reference to
collect2: ld returned 1 exit status

Help me please, I don't know how to check, or upgrade
my glibc packages, because I think this is what the
problem is.


#include <gtk/gtk.h>

int main (int argc, char **argv) 
           GtkWidget *window;
           GtkWidget *image;   

           gtk_init (&argc, &argv);
           window = gtk_window_new
           g_signal_connect (G_OBJECT (window),
"destroy", gtk_main_quit, NULL);

           image = gtk_image_new_from_file
           gtk_container_add (GTK_CONTAINER (window),

           gtk_widget_show_all (window);
           gtk_main ();
           return 0;

Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]