Page 1 of 1

guichan won't compile with gcc 4.0.3

Posted: 16 Oct 2005, 02:20
by khandy
guichan won't compile with gcc 4.0.2

Code: Select all

 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/include/SDL -D_REENTRANT -g -O2 -Wall -Werror -Wno-unused -DGUICHAN_BUILD -MT dropdown.lo -MD -MP -MF .deps/dropdown.Tpo -c dropdown.cpp  -fPIC -DPIC -o .libs/dropdown.o
cc1plus: warnings being treated as errors
../../include/guichan/listmodel.hpp:71: warning: 'class gcn::ListModel' has virtual functions but non-virtual destructor
make[2]: *** [dropdown.lo] Error 1
make[2]: Leaving directory `/home/kevin/guichan-0.4.0/src/widgets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kevin/guichan-0.4.0/src'
make: *** [all-recursive] Error 1
The solution it to create a virtual destructor in listmodel.h

Code: Select all

virtual ~ListModel() {}
I'm not a member of the guichan developement blog, and don't really want to be, so if anyone wants to alert them.

Posted: 17 Oct 2005, 07:57
by Bjørn
This has already been reported months ago (gcc 4 isn't so new anymore) and the bug has been fixed in Guichan CVS. Indeed the place to report this would have been the Guichan website:

http://guichan.sourceforge.net/forum/read.php?3,335