Ok,I'm making a simple game engine,and now,my compiler is going crazy on me. Its saying I have undefined references to my parent classes. Here is the code for two classes,one in which is getting a linker error:
Hmm not sure whether this would cause linker errors but in your child class you only need to include "ILoadedMesh.hpp" as in that file it also includes the other two. So essentially you're including the same files twice. Could you post the errors you are receiving? That might help.
What does DLL_EXPORT evaluate to?
Are the functions declared in ILoadedMesh and IBaseMesh all implemented?
What are the exactly are the error messages?
IBase has all of its functions declared with the code in its own class. The linker errors say there is an undefined reference to the constructors and deconstructors of ILoadedMesh in CLoadedMesh.o
class DLL_EXPORT ILoadedMesh : public IBaseMesh
{
public:
ILoadedMesh(IManager* mgr,const c8* file) {}
virtual ~ILoadedMesh() {}
};
Also, be sure to make the IBaseMesh destructor virtual, if not done so already. This has nothing to do with this, but if you don't do this, you get unexpected behaviour when you delete an instance using a IBaseMesh or ILoadedMesh pointer.