According to Lawson A. Whitney: While burning my CPU.
> 
> 
> On Fri, 19 Feb 1999 13:10:54 -0500 (EST) Josh Steiner
> <[EMAIL PROTECTED]> writes:
> > 
> > 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.
> 
> Tried info -f ld.so?^v^ It should provide a better description than I
> can.
> > 
> > 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
> > 
> Also info -f ld   .. ld is what you're having this altercation with. :-)

It would be a lot easier to try typing "make" first, what Josh is doing is
wrong, he is using gcc without any command line options, using 'make' will
read the Makefile and get its path variables/compile options and from there.

Of course reading about 'ld' is a good idea, but will not help him very
much in this case.
Futher more it would seem he is missing a file called glibconfig.h, which
might be created by a configure script, so therefor that script was not run
before he started to compile or, he does not have the correct libs to
compile, namely no GLIBC or libc6.
Having not this archive here on my system makes it difficult to realy give
an accurate answer.

> 
> > [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
> > 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to