John Salmon wrote:
I'm trying to compile the first program from "GTK+ 2.0 Tutorial" located in
the GNOME Documentation Library on the gnome.org website.
[snip]
The command (also from the same place) is;
[EMAIL PROTECTED]:~/tut$ >gcc base.c 'pkg-config --cflags --libs gtk+-2.0'
The response I get from the compiler is;
gcc: pkg-config --cflags --libs gik+-2.0: no such file or directory
base.c:1:21: error: gtk/gtk.h: No such file or directory
base.c:3: error: conflicting types for 'argv'
base.c:3: error: previous definition of 'argv' was here
base.c: in function 'main':
base.c:5: error: 'GtkWidget' undeclared (first use in this function)
base.c:5: error: (Each undeclared identifier is reported only once
base.c:5: error: for each function it appears in.)
base.c:6: error: 'window' undeclared (first use in this function)
base.c:8: error: 'argc' undeclared (first use in this function)
base.c:10: error: expected ';' before 'window'
[EMAIL PROTECTED]:~/tut$ >
The first line seems to indicate that I'm missing the whole package.
No, you're missing the development package. Run
# apt-get install libgtk2.0-dev
to get it.
--
Indifference will certainly be the downfall of mankind, but who cares?
Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]