can't compile gnometris, problem in popt.h



Hi.

I saw someone had the same problem in the archives, but couldn't find a response. Please point me there if this has been solved elsewhere. I have posted the errors at the end of this mail.

I do some C development so I thought to look at popt.h, and see if I could figure out what was going on. The lne causing the errors is:

#ifndef __cplusplus
/* -exporttype -typeuse */
typedef struct poptOption * poptOption;
/* =exporttype =typeuse */
#endif

Now, I'm aware of my limitations as a C programmer, so I'd like to know what's going on here. Under what circumnstances should this work? But anyway, that's more of an aside, as my real question is: how to I get garnome to work?

The compiler output is:
`/home/stark/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -std=gnu89 -DORBIT2=1 -pthread -I/home/stark/garnome/include/libgnome-2.0 -I/home/stark/garnome/include/glib-2.0 -I/home/stark/garnome/lib/glib-2.0/include -I/home/stark/garnome/include/orbit-2.0 -I/home/stark/garnome/include/libbonobo-2.0 -I/home/stark/garnome/include/gconf/2 -I/home/stark/garnome/include/gnome-vfs-2.0 -I/home/stark/garnome/lib/gnome-vfs-2.0/include -I/home/stark/garnome/include/bonobo-activation-2.0 -I/home/stark/garnome/include/libgnomeui-2.0 -I/home/stark/garnome/include/libgnomecanvas-2.0 -I/home/stark/garnome/include/gtk-2.0 -I/home/stark/garnome/include/libart-2.0 -I/home/stark/garnome/include/libbonoboui-2.0 -I/home/stark/garnome/include/pango-1.0 -I/home/stark/garnome/include -I/home/stark/garnome/include/freetype2 -I/home/stark/garnome/lib/gtk-2.0/include -I/home/stark/garnome/include/atk-1.0 -I/usr/X11R6/include -I/home/stark/garnome/include/libxml2 -I/home/stark/garnome/include/gnome-vfs-module-2.0 -I../libgames-support -Wall -Wmissing-prototypes -I../libgames-support -DDATADIR=\""/home/stark/garnome/share"\" -DGNOMELOCALEDIR=\""/home/stark/garnome/share/locale"\" -I/home/stark/garnome/include -I/usr/X11R6/include -g -I/home/stark/garnome/include -I/usr/X11R6/include -L/home/stark/garnome/lib -L/usr/X11R6/lib -O2 -pipe -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
In file included from /home/stark/garnome/include/libgnome-2.0/libgnome/gnome-program.h:35, from /home/stark/garnome/include/libgnome-2.0/libgnome/libgnome.h:29,
                 from /home/stark/garnome/include/libgnomeui-2.0/gnome.h:5,
                 from tetris.h:25,
                 from main.cpp:22:
/usr/include/popt.h:190: conflicting types for `typedef struct
   poptOption*poptOption'
/usr/include/popt.h:114: previous declaration as `struct poptOption'
/usr/include/popt.h:217: conflicting types for `struct poptOption'
/usr/include/popt.h:190: previous declaration as `typedef struct
   poptOption*poptOption'
main.cpp: In function `int main(int, char**)':
main.cpp:40: initializer for scalar variable requires one element
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/home/stark/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/stark/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/stark/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/stark/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2'
make[1]: *** [build-work/main.d/gnome-games-2.5.2/Makefile] Error 2
make[1]: Leaving directory `/home/stark/garnome-0.28.3/gnome/gnome-games'
make: *** [../../gnome/gnome-games/cookies/main.d/install] Error 2
[stark dhcppc0 gnome-desktop]$ cd



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