Re: #include gtk/gtk.h

On Sat, 2002-05-18 at 12:19, Mahdi Samee wrote:

> "gtk/gtk.h: no such file or directory"
> There are directories of gtk-2.0 and gtk-1.2 in
>  "include" directory on my system, but there isn't
> no path by name "gtk/gtk.h" and path of gtk.h in
> my filesystem is "usr/include/gtk-2.0/gtk/gtk.h" and
> with "#include gtk-2.0/gtk/gtk.h" in my programs
> accuped alot of errors for compiling.

#include <gtk/gtk.h>

and compile/link with:

gcc `pkg-config gtk+-2.0 --cflags --libs` -o foo foo.c

Anyway, you should read the examples at "gtk+/examples" ;-)

Greetings, alo.

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