Page 1 of 1

Error while compiling for Debian amd64 with gcc 4.0

Posted: 15 Jul 2005, 14:50
by moi1392
I got an error because in guichan, the class ModelList declare a pure virtual and is not implemented.
The linker fail in gui/byu.o when is looking for the super class destructor (ListModel)

I simply add these line at the end of this file (buy.cpp) :

Code: Select all

namespace gcn
{
	ListModel::~ListModel()
	{
	}
}

Posted: 15 Jul 2005, 16:25
by Bjørn
OK, thanks for this workaround. We'll make sure to include that as long as Guichan 0.5.0 isn't out yet.

One thing though, will it work with Guichan CVS that does define the ListModel destructor?

Posted: 15 Jul 2005, 16:39
by moi1392
sorry for not saying this before : I use guichan CVS (I check it out yesterday)

Posted: 17 Jul 2005, 14:27
by Bjørn
If it's a problem with Guichan CVS, then Guichan CVS should be fixed and I won't add the workaround to TMW. I've told a Guichan developer about this problem. Latest TMW version and TMW CVS should work fine with Guichan 0.4.0.

Posted: 19 Jul 2005, 01:13
by nym
This problem was fixed not long after the 0.4 release and is available in Guichan CVS. If you are using Guichan CVS and are missing the virtual destructor from ListModel, something is wrong and you should re-checkout the Guichan CVS repositry. If you want to use Guichan 0.4 there is a simple patch you can apply to make it usable with gcc4:

http://satgnu.org/nym/guichan/guichan-0.4.0.patch

just use: patch -p0 < guichan-0.4.0.patch

Posted: 20 Jul 2005, 16:06
by moi1392
yeah, I know the bug fixed by your patch, that's was the way I switch to cvs !!
But event if the desctructor is declared, It must be implemented if some class inherit from that one because it needed !

Posted: 02 Aug 2005, 12:05
by moi1392
bug fixed in guichan CVS :)