I googled "virtual functions but non-virtual destructor"
Posted: 21 Jun 2008, 02:18
Sorry, I tried to "google it" but am swimming (drowning) in a sea of useless results.
Getting the same error in different flavors.
|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
code for the problem section:
/**
* Ignore strategy: describes how we should handle ignores
*/
class
PlayerIgnoreStrategy
{
public:
std::string mDescription;
std::string mShortName;
/**
* Handle the ignoring of the indicated action by the indicated player
*/
virtual void ignore(Player *player, unsigned int flags) = 0;
};
Hey guys,
I actually built successfully a SVN client a while back then used the turtle svn to update and now can't get it to build anymore. (Using code::blocks) I updated guichan and also deleted the directory and re-Downloaded svn and attempted to build and now gets a lot farther but now gets the following errors.
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|297|warning: `class PIS_nothing' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|312|warning: `class PIS_dotdotdot' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|352|warning: `class PIS_blinkname' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|368|warning: `class PIS_emote' has virtual functions but non-virtual destructor|
||=== Build finished: 0 errors, 13 warnings ===|
Please help, and please don't beat me up for being a knave.
Getting the same error in different flavors.
|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
code for the problem section:
/**
* Ignore strategy: describes how we should handle ignores
*/
class
PlayerIgnoreStrategy
{
public:
std::string mDescription;
std::string mShortName;
/**
* Handle the ignoring of the indicated action by the indicated player
*/
virtual void ignore(Player *player, unsigned int flags) = 0;
};
Hey guys,
I actually built successfully a SVN client a while back then used the turtle svn to update and now can't get it to build anymore. (Using code::blocks) I updated guichan and also deleted the directory and re-Downloaded svn and attempted to build and now gets a lot farther but now gets the following errors.
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\gui\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\net\..\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.h|67|warning: `class PlayerIgnoreStrategy' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|297|warning: `class PIS_nothing' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|312|warning: `class PIS_dotdotdot' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|352|warning: `class PIS_blinkname' has virtual functions but non-virtual destructor|
C:\Program Files\The Mana World\SVN\branches\0.0\src\player_relations.cpp|368|warning: `class PIS_emote' has virtual functions but non-virtual destructor|
||=== Build finished: 0 errors, 13 warnings ===|
Please help, and please don't beat me up for being a knave.