Re: Installing GTK+



Eduardo M KALINOWSKI <ekalin@xxxxxxxxx> wrote in
news:ad6RA-rR-19@xxxxxxxxxxxxxxxx:

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.


Actually, there were a number of stupid typos in the source and in yhe
command line. Plus, I thought I had installed the 'gnome-devel' package,
but hadn't. Everything now runs without a hitch. Thanks all for the support
and the understanding.

--
John Salmon
salmonjj@xxxxxxxxxxx
---- Posted via Pronews.com - Premium Corporate Usenet News Provider ----
http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups


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



Relevant Pages

  • re: if I were a newby how would I get sound?
    ... Try apt-cache search jack if memory serves that's a package that can get cdrom's playing out of the cdrom jack. ... You probably want to run the updatedb command as root when you're disconnected from the internet and then try locate "search string" too. ... A few useful files to download would be apt-get install less -r and apt-get install lg-all and apt-get install doc-linux-text and apt-get install debian-reference. ...
    (Debian-User)
  • Re: HELP
    ... First we have to get your graphical interface going. ... I assume that you know how to log on to your computer on the command ... apt-get install mozilla-firefox ... to find all Debian packages which have these two words in their package ...
    (Debian-User)
  • Re: aptitute became non-working after installation of manual-compiled .deb Linux kernel
    ... I wasn't able to locate file for the linux-image-2.6.23 package. ... I'm still unable to install any package. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: versions of packages available in other branches
    ... to obtain information about versions of a package currently available in ... But I am looking for a command line alternative. ... reportbug seem to be doing this some how. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: versions of packages available in other branches
    ... Using command line interface, What is the efficient ... way to obtain information about versions of a package currently available ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)