Re: Where is my 'gtk.h' ?
- From: "M. Lavasani" <mehdi lavasani connectinternetsolutions com>
- To: pgmoscatt optushome com au
- Cc: gtk-list gnome org
- Subject: Re: Where is my 'gtk.h' ?
- Date: Mon, 14 Apr 2003 11:18:19 +0100 (BST)
Hi
>
> Ok... I am pretty new to GTK programming. I was a former Mandrake 8
> user where I programmed using KDE.
>
> On the weekend I moved across to RH9 and decided to give the Gnome
> enviroment a go and give programming with Gnome/Gtk at try.
>
> Seeing that I installed RH9 with it's base of Gnome - I assume the Gtk
> library would have installed and all the necessary files which I'd need
> to program using GTK.
>
> When I compile a very simple script with 'gcc' I get an error saying
> that it can't find 'gtk.h'
>
> I have it in the include statement as #include <gtk/gtk.h>.
>
> I have conducted a 'find' for gtk.h and found it in
> /usr/include/gtk-2.0/gtk
>
> I even updated my PATH variable in '.bashrc' to include this directory
> e.g: export PATH=$PATH:/usr/include/gtk-2.0/gtk
>
> Where am I going wrong ??
Doing:
export PATH=$PATH:/usr/include/gtk-2.0/gtk
This is wrong. You should n't add include path to your binay path.
you can do this:
export CPPFLAGS="-I/usr/include/gtk-2.0/gtk":$CPPFLAGS
Cheers
Mehdi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]