I'm trying to compile the example program provided in Chapter 5 of "The Official GNOME 2 Developer's Guide". Every program in this book that contains a "#include <gnome.h>" line NEVER compiles. I wonder if you can help me figure this one out?
Here's my guess at the compile command and the resulting output: #gcc `pkg-config --cflags --libs libgnome-2.0 libglade-2.0` main.c -o test main.c:1:19: gnome.h: No such file or directory main.c:22: error: parse error before '*' token main.c:22: warning: data definition has no type or storage class main.c: In function `closebutton_clicked': main.c:41: error: `GtkDialog' undeclared (first use in this function) main.c:41: error: (Each undeclared identifier is reported only once main.c:41: error: for each function it appears in.) main.c:41: error: `window' undeclared (first use in this function) main.c: At top level: main.c:47: error: parse error before '*' token main.c: In function `changed': main.c:50: error: `id_ptr' undeclared (first use in this function) main.c: In function `main': main.c:98: error: `GnomeProgram' undeclared (first use in this function) main.c:98: error: `program' undeclared (first use in this function) main.c:99: error: `GtkDialog' undeclared (first use in this function) main.c:99: error: `window' undeclared (first use in this function) main.c:103: error: `LIBGNOMEUI_MODULE' undeclared (first use in this function) main.c:103: error: `GNOME_PROGRAM_STANDARD_PROPERTIES' undeclared (first use in this function) main.c:104: error: `GNOME_PARAM_HUMAN_READABLE_NAME' undeclared (first use in this function) main.c:111: warning: assignment makes pointer from integer without a cast main.c:118: warning: passing arg 4 of `g_signal_connect_data' makes pointer from integer without a cast As you can see ... gnome.h cannot be found. Here's the packages that "pkg-config --list-all | sort" knows about: art-sharp Art - Art avifile avifile - A library for reading and writing of compressed video bse BSE - Bedevilled Sound Engine (Synthesis Core) camel-2.0 camel - the Evolution mail library fontconfig Fontconfig - Font configuration and customization library freetype2 FreeType 2 - A free, high-quality, and portable font engine. gconf-sharp GConf - GConf gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling gdk-pixbuf-xlib-2.0 GdkPixbuf Xlib - GdkPixbuf rendering for Xlib gimp-2.0 GIMP - GIMP Library gimpthumb-2.0 GIMP Thumb - GIMP Thumbnail Library gimpui-2.0 GIMP UI - GIMP User Interface Library glib-2.0 GLib - C Utility Library glib GLib - C Utility Library glibmm-2.4 GLibmm - C++ wrapper for GLib gmodule-2.0 GModule - Dynamic module loader for GLib gmodule GModule - Dynamic module loader for GLib gnomedb-sharp GnomeDB - GnomeDB gnome-icon-theme gnome-icon-theme - A collection of icons used as the basis for GNOME themes gnome-mime-data-2.0 gnome-mime-data - Base set of file types and applications for GNOME gnome-python-2.0 GNOME-python - Python bindings for GNOME libraries gnome-sharp Gnome - Gnome gnome-speech-1.0 gnome-speech - GNOME text to speech infrastructure gnome-system-tools gst - Gnome System Tools gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library gok-1.0 Gok - GNOME On-screen Keyboard gswitchit GSwitchIt - GSwitchIt shared library (for plugin development) gthread GThread - Thread support for GLib gtk+-2.0 GTK+ - GIMP Tool Kit (x11 target) gtk-doc gtk-doc - API documentation generator gtkhtml-sharp Gtkhtml - Gtkhtml gtk-sharp Gtk - Gtk gtk+-x11-2.0 GTK+ - GIMP Tool Kit (x11 target) hal hal - Free desktop hardware abstraction layer howl Howl - Howl Rendezvous/mDNS-SD Library from Porchdog Software (http://www.porchdogsoft.com) ImageMagick ImageMagick - ImageMagick - Convert, Edit, and Compose Images imlib2 imlib2 - Powerful image loading and rendering library imlibgdk ImlibGdk - GDK support libraries for Imlib libbonobo-2.0 libbonobo - libbonobo libdevhelp-1.0 devhelp - devhelp libebook-1.0 libebook - Client library for evolution address books libecal-1.0 libecal - Client library for evolution calendars libedata-cal-1.0 libedatacal - Backend library for evolution calendars libexif libexif - Library for easy access to EXIF data libexslt libexslt - EXSLT Extension library libglade-gnome Libglade gnome module - A library providing support for GNOME widgets in libglade libglade Libglade - a library for dynamically loading GLADE interface files libgnome-2.0 libgnome - libgnome libgnomeprint-2.2 libgnomeprint-2.2 - libgnomeprint - Printing library for gtk+ based applications libgnomeui-2.0 libgnomeui - libgnomeui libgsf-1 libgsf-1 - A library for reading and writing structured files (eg MS OLE and Zip) libIDL libIDL - IDL parsing library libidn Libidn - IETF stringprep, nameprep, punycode, IDNA text processing. libloginhelper-1.0 liblogin-helper - Login-Helper library for assistive technologies libpanelapplet-2.0 libpanel-applet-2 - libpanel-applet-2 libpng libpng12 - Loads and saves PNG files libraw1394 libraw1394 - Interface library for the Linux IEEE1394 drivers. librsvg-2.0 librsvg - library that renders svg files libspi-1.0 libspi - Accessibility Technology software library libvcdinfo libvcdinfo - VCD information library libxine libxine - The xine engine library libxml-2.0 libXML - libXML library version2. libxml libXML - libXML library. mozilla-nspr NSPR - The Netscape Portable Runtime openssl OpenSSL - Secure Sockets Layer and cryptography libraries and tools ORBit-2.0 ORBit-2.0 - High-performance CORBA Object Request Broker. pangoft2 Pango FT2 - Freetype 2.0 font support for Pango pangox Pango X - X Window System font support for Pango pyorbit-2 PyORBit - Python bindings for ORBit2 sfi SFI - Synthesis Fusion Kit Interface Library shared-mime-info shared-mime-info - Freedesktop common MIME database shout Shout - Audio streaming library for icecast encoders streamtuner streamtuner - A stream directory browser system-tools-backends gst-backends - GNOME System Tools backends vorbis vorbis - vorbis is the primary Ogg Vorbis library vte vte - Vte terminal widget. Wand Wand - MagickWand - Convert, Edit, and Compose Images xrender Xrender - X Render Library zvbi-0.2 ZVBI - VBI Capturing and Decoding Library _______________________________________________ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list