RE: undefined references...



perhaps this is a dumb suggestion, but on my first program in glade that i
used gnome widgets on, i recieved similar errors because i didn't check the
box 'gnome support' in the glade options before i had it write the source
code.  have you checked your settings in glade?

shane

-----Original Message-----
From: Mike [mailto:rapacity gingin net]
Sent: Friday, March 15, 2002 4:47 AM
To: gnome-devel-list gnome org
Subject: Re: undefined references...


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.



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