Re: (no subject)

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

 



On Tue, 17 Feb 2004 06:31:34 GMT, Chaitanya RD Kulkarni <cboom@xxxxxxxxxxxxxx>  said:
>i am not ableto compile the very first program(helloworld)
> of the official tutorial.... it says, gtk.h: no such file.....

It would help if you told us what sort of system you're using, but
in general, it's often one of the following:

1) Many Linux systems install the runtime by default, but not the programming
support.  For instance, for a RedHat/Fedora system, you'd need the '-devel'
RPMs. For gtk1, there are 'glib' and 'gtk+' - you'd need glib-devel and gtk+-devel
as well.  For gtk2, you'd need atk-devel, glib2-devel, gtk2-devel, and pango-devel.

2) Failing to use 'gtk-config --cflags' for gtk1, or 'pkgconfig gtk --cflags' for gtk2:

cc `gtk-config --cflags` -o hello hello-gtk1.c   (the backquotes are important)
cc `pkgconfig gtk --cflags` -o hello hello-gtk2.c

If neither of those explain your problem, feel free to write back, including the following
info:

a) What system you're using
b) cut-and-paste the actual 'cc' command and the exact error messages.

Hope that helps..

Attachment: pgp00066.pgp
Description: PGP signature


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux