#8 libnghost compile error

Core (2)

Hi Devs of nghost,

I have been trying to get nghost going for ages now but I cant seem to get past this error when compiling:

mv -f .deps/libnghostgui2_la-artist.Tpo .deps/libnghostgui2_la-artist.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/log -I../../src/core -I../../src/dao -I../../src/net -I../../src/plugins/interface -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT libnghostgui2_la-background.lo -MD -MP -MF .deps/libnghostgui2_la-background.Tpo -c -o libnghostgui2_la-background.lo `test -f 'background.cpp' || echo './'`background.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/log -I../../src/core -I../../src/dao -I../../src/net -I../../src/plugins/interface -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT libnghostgui2_la-background.lo -MD -MP -MF .deps/libnghostgui2_la-background.Tpo -c background.cpp -fPIC -DPIC -o .libs/libnghostgui2_la-background.o
gfxengine.h:63: error: ISO C++ forbids declaration of 'Display' with no type
gfxengine.h:63: error: expected ';' before '*' token
gfxengine.h:64: error: expected `;' before 'static'
gfxengine.h:64: error: ISO C++ forbids declaration of 'Window' with no type
gfxengine.h:64: error: expected ';' before '&' token
gfxengine.h:65: error: expected `;' before 'int'
gfxengine.h:103: error: ISO C++ forbids declaration of 'Display' with no type
gfxengine.h:103: error: expected ';' before '*' token
gfxengine.h:104: error: 'Window' does not name a type
make[3]: *** [libnghostgui2_la-background.lo] Error 1
make[3]: Leaving directory `/root/nghost/libnghost-2.0.1/src/gui2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/nghost/libnghost-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nghost/libnghost-2.0.1'
make: *** [all] Error 2

if i go in to src/gui2 and rename libnghostgui2_la-background.loT to .lo the make goes again until this error comes up again. I also realised that it does not generate the lib properly when I do this.

I am running gentoo 2.6.23 if that is relevant at all.

Please let me know I am in desperate need to get nghost going so I can show it off!

please email me at chris at t-qualizer.co.nz

Chris Wiggins