Hi,
yaffa-alpha-0.5 does not compile on my machine (Linux 2.4.18-3
(RedHat), gcc 2.96). hdd.cc needs inclusion of errno.h (and has
inclusion of types.h twice, btw), same for moguibase.cc. I also
get a warning of return statement missing at line 730 in function
`gboolean MoEntry_callback (GtkWidget *, GdkEventKey *, void *)
.
After changing the files, I get this error, that I can't recover:
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT
-I/usr/X11R6/include -pthread -g -O2 -MT yaffa-moitemlister.o
-MD -MP -MF ".deps/yaffa-moitemlister.Tpo" \
-c -o yaffa-moitemlister.o `test -f 'moitemlister.cc' || echo './
'`moitemlister.cc; \
then mv -f ".deps/yaffa-moitemlister.Tpo" ".
deps/yaffa-moitemlister.Po"; \
else rm -f ".deps/yaffa-moitemlister.Tpo"; exit 1; \
fi
In file included from moitemlister.hh:31,
from moitemlister.cc:39:
moguibase.hh:381: syntax error before `;'
make[2]: *** [yaffa-moitemlister.o] Error 1
make[2]: Leaving directory `/home/andreas/build/yaffa-alpha-0.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andreas/build/yaffa-alpha-0.5'
make: *** [all] Error 2
Looks like the `string' qualifier is unknown, or nested classes are
unknown to my compiler.
Andreas.
Logged In: YES
user_id=451026
The problem here is with GCC 2.9x.x, YAFFA's source code is
designed with the GCC 3-series in mind. Since the way that
C++ is handled in these two versions of GCC is so different,
some things must be done differently. My personal policy in
this matter is however not to support GCC 2.9x.x, since I
think C++ is broken there. My recommendation is either that
some voulunteer writes a patch, or that potential users
upgrade to GCC 3.