Beginning Frustrations



I've recently acquired a copy of "Developing Linux Applications with GTK+
and GDK" and have been trying to write a simple program. 

Much to my surprise, things aren't as easy as I was hoping them to be.
Trying to familiarize oneself with po files, autoconf/make/aclocal/etc, on
top of all the GNOME functions has proven a bit much.

Here's the probnlem I'm having at the moment:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I/usr/include
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/lib/glib/include -I/usr/X11R6/include -DG_LOG_DOMAIN=\"GRT\"
-DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -I../intl -I../intl    -g
-O2 -Wall -Wunused  -c grt.c
grt.c: In function `CustomWarning':
grt.c:32: warning: implicit declaration of function `printf'
grt.c: In function `grt_app_new':
grt.c:52: warning: implicit declaration of function `gnome_app_new'
grt.c:52: warning: implicit declaration of function `_'
grt.c:52: warning: assignment makes pointer from integer without a cast
grt.c:64: warning: implicit declaration of function
`gnome_app_set_contents'
grt.c:64: warning: implicit declaration of function `GNOME_APP'
grt.c:65: warning: implicit declaration of function `gnome_appbar_new'
grt.c:65: `GNOME_PREFERENCES_NEVER' undeclared (first use in this
function)
grt.c:65: (Each undeclared identifier is reported only once
grt.c:65: for each function it appears in.)
grt.c:65: warning: assignment makes pointer from integer without a cast
grt.c:66: warning: implicit declaration of function
`gnome_app_set_statusbar'
grt.c:68: warning: implicit declaration of function
`grt_install_menus_and_toolbar'
grt.c: In function `grt_app_close':
grt.c:75: warning: implicit declaration of function `GNOME_IS_APP'
grt.c: In function `main':
grt.c:89: `GnomeClient' undeclared (first use in this function)
grt.c:89: `client' undeclared (first use in this function)
grt.c:89: warning: statement with no effect
grt.c:91: warning: implicit declaration of function `bindtextdomain'
grt.c:92: warning: implicit declaration of function `textdomain'
grt.c:101: warning: implicit declaration of function `gnome_master_client'
make: *** [grt.o] Error 1

Now I don't want to deluge code at you all, but I've been trying to use
the gnome-hello CVS module as a base for some of the code. I slimmed some
of the errors down to what you see at the moment, and this is what's
confusing me:

bash-2.03$ gcc -E -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include
-I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/lib/glib/include -I/usr/X11R6/include -DG_LOG_DOMAIN=\"GRT\"
-DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -I../intl -I../intl    -g
-O2 -Wall -Wunused  -c grt.c | grep GnomeClient
   GnomeClient* client;
bash-2.03$

Where are the definitions for Gnome*, GNOME_ and gnome_* functions/macros?
I'm wondering if I'm missing a current version of something or where to
look for what I need to include. I think it's the latter, since
gnome-hello compiles fine.

Any suggestions appreciated,
Nathan.

-------------------------------------------------------------------------
Nathan P. Clemons                       "Peace favor your code."
nathan@windsofstorm.net                 ICQ: 2810688
IN CONSTRUCTION:                        http://gnome.windsofstorm.net
-------------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]