On Thu, Mar 14, 2002 at 05:59:20PM +0000, Eric Tchepannou wrote: > I am writing my first programm with glade. I have included some gnome > widgets. During compilation I encountered the following mistakes: It is > about some undefined references during linking... > g++ -O0 -Wall -o statgui callbacks.o interface.o main.o support.o > -L../../bin -L/usr/lib -L/usr/X11R6/lib \ > -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm > -lreader -lgeneral > interface.o: In function `create_main_window': > interface.o(.text+0x278): undefined reference to `gnome_app_fill_menu' > interface.o(.text+0xd08): undefined reference to `gnome_stock_pixmap_widget' I think these gnome_ functions are in libgnomeui; ask gnome-config for the libraries to include, should be -lgnomeui (gnome-config gnomeui --libs) > support.o(.text+0x357): undefined reference to `gdk_imlib_load_image' Not sure about this one, I would've thought -lgdk would have included it, but obviously not... Ahh... gnome-config gnomeui --libs for me includes -lgdk_imlib. HTH :-) -- Mike.
Attachment:
pgpIGeuLLc5QO.pgp
Description: PGP signature