Now I'm not exactly a newbie, but this seemed the best forum for this 
question.  I've used linux for a number of years, but have never really 
had to do much in the way of sys-admin duties (I would either just 
reinstall or call over a friend if i needed a fix or new feature :)  Now 
I am wrestling with trying to upgrade my gtk+ libraries.  What I am 
realising is that my knowledge about how programs find libraries has all 
just been picked up as I've gone.  I'd like to read a more coherent 
description of this process.

The specific problem I'm running into is that I've installed the latest 
stable GTK library, but am getting errors.  Could someone try to   
describe the relationship of LD_LIBRARY_PATH, ldconfig, ld.so etc.  or 
point me to some good documentation?  

here's the problem I'm having right now:

[root@bw66 trygtk]# gcc try.c 
In file included from /usr/local/include/gdk/gdktypes.h:25,
                 from /usr/local/include/gdk/gdk.h:23,
                 from /usr/local/include/gtk/gtk.h:23,
                 from try.c:1:
/usr/local/include/glib.h:22: glibconfig.h: No such file or directory

[root@bw66 trygtk]# gcc -I /usr/local/lib/glib/include bb.c 
/tmp/cca005171.o: In function `main':
/tmp/cca005171.o(.text+0xf): undefined reference to `gtk_init'
/tmp/cca005171.o(.text+0x19): undefined reference to `gtk_window_new'
/tmp/cca005171.o(.text+0x2a): undefined reference to `gtk_widget_show'
/tmp/cca005171.o(.text+0x32): undefined reference to `gtk_main'

Thanks alot!  

- Josh

---
Joshua W. H. Steiner - [EMAIL PROTECTED] - http://eds.org/~joschi

"Some scientists claim that hydrogen, because it is so plentyful, is the
basic building block of the universe. I dispute that. I say there is more
stupidity than hydrogen, and that is the basic building block of the
universe." 
   - Frank Zappa

Reply via email to