Newbie: Compiler err msg with GTK Tutorial hello code



Hi, 
   I tried to compile the hello world in the tutorial and I got the
error messages (listed below).

   I used the command "gcc -Wall hello.c `gtk-config --cflags --libs`"

I initially compiled with gtk 1.2. After that failed, I installed the
gtk 2.0 and got the same error messages.

I have read through the archives and no one provide a solution. They
just identified there was a problem with the location of the gtk
libraries.  I am using Mandrake 8.2. 

Any help would be much appreciated.
Thank you,

Joe


hello.c: In function `main':
hello.c:55: warning: implicit declaration of function `g_signal_connect'
hello.c:55: warning: implicit declaration of function `G_OBJECT'
hello.c:56: warning: implicit declaration of function `G_CALLBACK'
hello.c:79: warning: implicit declaration of function
`g_signal_connect_swapped'
/tmp/ccCHPXn9.o: In function `main':
/tmp/ccCHPXn9.o(.text+0x88): undefined reference to `G_CALLBACK'
/tmp/ccCHPXn9.o(.text+0x9b): undefined reference to `G_OBJECT'
/tmp/ccCHPXn9.o(.text+0xa6): undefined reference to `g_signal_connect'
/tmp/ccCHPXn9.o(.text+0xb8): undefined reference to `G_CALLBACK'
/tmp/ccCHPXn9.o(.text+0xcb): undefined reference to `G_OBJECT'
/tmp/ccCHPXn9.o(.text+0xd6): undefined reference to `g_signal_connect'
/tmp/ccCHPXn9.o(.text+0x129): undefined reference to `G_CALLBACK'
/tmp/ccCHPXn9.o(.text+0x13c): undefined reference to `G_OBJECT'
/tmp/ccCHPXn9.o(.text+0x147): undefined reference to `g_signal_connect'
/tmp/ccCHPXn9.o(.text+0x15a): undefined reference to `G_CALLBACK'
/tmp/ccCHPXn9.o(.text+0x16d): undefined reference to `G_OBJECT'
/tmp/ccCHPXn9.o(.text+0x178): undefined reference to
`g_signal_connect_swapped'
collect2: ld returned 1 exit status





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