Re: gtk headers



On Wed, 19 Mar 2003 15:09:47 -0800 (PST)
ed s <peoned yahoo com> wrote:


HI

I cant get <gtk/gtk.h> to compile. It is located in
/usr/local/include/gtk-2.0/. My compiler cant find the header,
giving:"gtk/gtk.h: No such file or directory" so if I do gcc
-I/usr/local/include/gtk-2.0 It gives me a list of errors with atk/*, pango/*
headers out of place. atk, pango, and glib are the same way as gtk all in 
/usr/local/include/atk-* /usr/local/include/pango-* 
/usr/local/include/glib-*. 
 
Have you tried using pkg-config?

Add `pkg-config --cflags gtk+-2.0` to your gcc command line (mind the
backtics "`") and it should work.

Roland
-- 
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in email
http://www.xs4all.nl/~rsmith/         X     No Word docs in email
                                     / \    Respect for open standards

Attachment: pgpY5LS47vmV3.pgp
Description: PGP signature



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