Re: gcc can't find includes for gtk



Anton Steiner wrote:
> 
> Hi there
> Sorry for my silly question.
> Since I'v updated my gtk, glib and egcs, gcc can't find the
> includes for gtk+
> 
> compiling eg. button:gtk.c i get following  errormsg:
> /tmp/ccNsishQ.o: In function `xpm_label_box':
> /tmp/ccNsishQ.o(.text+0xb): undefined reference to `gtk_hbox_new'
> /tmp/ccNsishQ.o(.text+0x1a): undefined reference to `gtk_container_get_type'
> /tmp/ccNsishQ.o(.text+0x26): undefined reference to `gtk_type_check_object_cast'

Try taking a look at what your 'gtk-config --cflags --libs'
prints out. Maybe, for some reason, it's not spitting out
the proper flags and libs.


-- 
+-----------------------------------------------------+
| Jeff "Shippy" Shipman     E-Mail: shippy@cs.nmt.edu |
| Computer Science Major    ICQ: 1786493              |
| New Mexico Institute of Mining and Technology       |
| Homepage: http://www.nmt.edu/~shippy                |
+-----------------------------------------------------+




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