Re: Installing GTK+



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;
johns@peace:~/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'
johns@peace:~/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
ekalin@xxxxxxxxx
http://move.to/hpkb


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Anyone having X problem updating from testing to unstable.
    ... no idea which ones I'm missing. ... Can some one provide a list of basic packages now required to run X ... Check out the Xorg transition wiki first; it has solutions for the most ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Problem with mod_fcgid inside a jail.
    ... Is that a bug or am I missing something? ... > I've just tried to run Apache with mod_fcgid 1.10 and 2.0, ... >> Josh Tolbert ... >> To unsubscribe, send any mail to ...
    (freebsd-questions)
  • Re: Etch: PAM unable to resolve symbol
    ... Some PAM library or other is missing or partially installed. ... You could try reinstalling libpam-modules: ... There should be four symlinks to pam_unix.so in /lib/security -- reinstalling should recreate these. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Bringing up eth0 NIC without logging in
    ... I have a couple of Debian installs on my laptop, ... comes up during the boot process, but on the other it doesn't, although ... What am I missing? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • /dev nodes not getting populated
    ... I updated my system last night (remotely so did'nt monitor what all changed). ... after reboot, X does not start. ... but the /dev entries for both are missing. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)