Re: Problem Linking with GTK 1.2.9 and 1.2.10



It seems that you are compiling with Gtk2.0
but then you are linking against Glib1.2,
so g_signal_connect, etc are not recognized

g_signal_connect, etc, does not exist in Gtk1.2,
only in Gtk2.0, you seem to be using the Gtk2.0
helloworld example (I just looked in the code,
it calls exactly your undefined references)

Carlos

I have tried on
solaris and linux with GTK versions 1.2.9 and 1.2.10 respectively.

helloworld.o: In function `main':
helloworld.o(.text+0xa4): undefined reference to `G_OBJECT'
helloworld.o(.text+0xb8): undefined reference to `G_CALLBACK'
helloworld.o(.text+0xd4): undefined reference to `g_signal_connect'
helloworld.o(.text+0xe0): undefined reference to `G_OBJECT'
helloworld.o(.text+0xf4): undefined reference to `G_CALLBACK'
helloworld.o(.text+0x110): undefined reference to `g_signal_connect'
helloworld.o(.text+0x15c): undefined reference to `G_OBJECT'
helloworld.o(.text+0x170): undefined reference to `G_CALLBACK'
helloworld.o(.text+0x18c): undefined reference to `g_signal_connect'
helloworld.o(.text+0x198): undefined reference to `G_OBJECT'
helloworld.o(.text+0x1ac): undefined reference to `G_CALLBACK'
helloworld.o(.text+0x1c8): undefined reference to
`g_signal_connect_swapped'



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