guichan won't compile with gcc 4.0.3

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
khandy
Peon
Peon
Posts: 24
Joined: 28 Aug 2005, 21:21

guichan won't compile with gcc 4.0.3

Post by khandy » 16 Oct 2005, 03:20

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.
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » 17 Oct 2005, 08:57

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
Locked