I've a compilation error "base class undefined", with some class defined like this :
// in a file called A.h
class A { ... }
// in an file called toto.h:
#include "a.h"
namespace toto {
class B :public A { ...}
}
Does any one understand this error ?
Thanks !!
namespace and heritage !
Sure - it says that your base class is undefined :-)
Hey, I'm not making fun of you - just trust your compiler if he says stuff like that. You can have several reasons for that. For example your first line in file A.h might be #include "toto.h". Or maybe you simply made a typo - for example you accidentally typed public a instead of public A. Hm, actually I just see that you _did_ make such typo in the example here. You have a file called A.h and include "a.h" - that would work on Windows but not on Linux.
Hey, I'm not making fun of you - just trust your compiler if he says stuff like that. You can have several reasons for that. For example your first line in file A.h might be #include "toto.h". Or maybe you simply made a typo - for example you accidentally typed public a instead of public A. Hm, actually I just see that you _did_ make such typo in the example here. You have a file called A.h and include "a.h" - that would work on Windows but not on Linux.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm