Re: how to tell compiler to look for GTK library



On Sun, 2003-08-24 at 21:30, Valdis Kletnieks vt edu wrote:
> On Sun, 24 Aug 2003 21:16:36 PDT, Jeff Trefftzs <trefftzs tcsn net>  said:

<snip>
> > 
> > A quick check on my system (RH9) shows the directory as
> > 
> > /usr/include/gtk-1.2  (note the dash between gtk and 1.2).
> > 
> > Check man ldconfig to see if /usr/include is in our load path (I don't
> > see how it couldn't, but ...), and maybe add /usr/include/gtk-1.2 to the
> > /etc/ld.so.conf file as well.  Or, try addint /usr/include/gtk-1.2 to
> > your LD_LIBRARY_PATH environment variable.
> 
> /usr/include doesn't have anything to do with ldconfig.  
> 
Of course.  You're right.  (Not enough coffee).

> Getting a -I/usr/include/gtk-1.2 into gcc would be more productive,
> either by modifying the CFLAGS or CPPFLAGS environment variables:
> 
> export CPPFLAGS=`gtk-config --cflags`      (note those *back*ticks)
> 
> (or similar magic inside a Makefile).
-- 

--Jeff

Jeff Trefftzs <trefftzs tcsn net>
http://www.tcsn.net/trefftzs			Home Page
http://gug.sunsite.dk/gallery.php?artist=68	Gimp Gallery
http://trefftzs.topcities.com/			Photo Gallery 




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