[Xfc-dev] Compiling tutorial/chapter_4
Sylvain Vedrenne
sylvain.vedrenne at free.fr
Tue Aug 2 00:36:07 CEST 2005
Hi,
When trying to compile the example from chapter 4 of the tutorial, I get
the following errors:
sylvain at totoro:~/BIG/XFC_Dev/Sylvain/ch04$ make
g++ xfcapp.cc -o xfcapp `pkg-config xfcui-4.3 --cflags --libs`
xfcapp.cc:9:32: gconf/gconf-client.h: No such file or directory
xfcapp.cc: In constructor `XfcApp::XfcApp()':
xfcapp.cc:52: error: `GConfClient' undeclared
(first use this function)
xfcapp.cc:52: error: (Each undeclared identifier is reported only
once for each function it appears in.)
xfcapp.cc:52: error: `client' undeclared (first use this function)
xfcapp.cc:52: error: `gconf_client_get_default' undeclared
(first use this function)
xfcapp.cc:53: error: `gconf_client_get_string' undeclared
(first use this function)
make: *** [xfcapp] Error 1
So I tried adding `pkg-config gconf --cflags --libs` to the Makefile,
but then I get these errors instead:
sylvain at totoro:~/BIG/XFC_Dev/Sylvain/ch04$ make
g++ xfcapp.cc -o xfcapp `pkg-config xfcui-4.3 --cflags --libs` \
`pkg-config gconf --cflags --libs`
In file included from /usr/include/gconf/1/gconf/gconf-error.h:25,
from /usr/include/gconf/1/gconf/gconf-value.h:25,
from /usr/include/gconf/1/gconf/gconf-schema.h:26,
from /usr/include/gconf/1/gconf/gconf.h:29,
from /usr/include/gconf/1/gconf/gconf-client.h:26,
from xfcapp.cc:9:
/usr/include/gconf/1/gconf/gconf-glib-public.h:32: error:
redefinition of `struct _GError'
/usr/include/glib-2.0/glib/gerror.h:31: error:
previous definition of `struct _GError'
make: *** [xfcapp] Error 1
Please what can I do to solve the issue?
BTW in chapter 3 there is an incorrect reference to a former name of
XFC, "Inti", here: "
// Always remember this step, this tells Inti that our preparation
for this button is complete,
// and it can now be displayed.
button->show();
"
Sylvain.
--
Lernu! http://www.lernu.net
More information about the Xfc-dev
mailing list