When trying to compile the BOTS code on ubuntu server 8.04 today, I ran into the following error(s):
Code:
bot.h:47: error: expected ';' before 'override'
bot.h:48: error: expected ';' before 'override'
bot.h:49: error: expected ';' before 'override'
bot.h:51: error: expected ';' before 'override'
bot.h:52: error: expected ';' before 'override'
which corresponds to
Code:
virtual void SetLevel(uint8 in_level, bool command = false) override;
virtual void FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho) override;
virtual bool Process() override;
//virtual void AI_Process();
virtual bool Save() override;
virtual void Depop(bool StartSpawnTimer = true) override;
After asking a friend who has lots more c++ experience than me, he suggested 'override' might be a MS only keyword, so it could be a good idea to find a cross-platform equivalence. He also noted that "once override is even removed, it can add bugs anywhere where dynamic casting is used during runtime".