I'm trying to do the same thing as Hlynkacg did in his thread titled "Multiple Layers of inheritance" see here where HLynkacg created a class that inherited from the VESSEL3. He then created another class that inherited from that class.
Face noted (towards the end of page 2) that his implimentation for his base class was held in a different dll than his child class. Then I think that HLynkacg put all his classes together into 1 dll and everything worked fine.
I can't do that, because I want our orbiter community to be able to add their own buildings as they wish by inheriting off the building class which itself is derived from the VESSEL3 class. If I were to consolidate all the classes into one dll then no one will be able to add building of their own.
I'm getting the same output error messages upon compillation as HLynkacg got...
...where Building is my parent class, and SMC_HQ is my child class. Both are held in separate .dlls. Both of these error messages are in relation to constructor/destructor methods defined in both Building and SMC_HQ .h files.
I am sure this can be done, otherwise noone would be able to inherit the VESSEL3 class, would they?
Face noted (towards the end of page 2) that his implimentation for his base class was held in a different dll than his child class. Then I think that HLynkacg put all his classes together into 1 dll and everything worked fine.
I can't do that, because I want our orbiter community to be able to add their own buildings as they wish by inheriting off the building class which itself is derived from the VESSEL3 class. If I were to consolidate all the classes into one dll then no one will be able to add building of their own.
I'm getting the same output error messages upon compillation as HLynkacg got...
HTML:
1>SMC_HQ.obj : error LNK2019: unresolved external symbol "public: __thiscall Building::~Building(void)" (??1Building@@QAE@XZ) referenced in function "public: __thiscall SMC_HQ::~SMC_HQ(void)" (??1SMC_HQ@@QAE@XZ)
1>SMC_HQ.obj : error LNK2019: unresolved external symbol "public: __thiscall Building::Building(void *,int)" (??0Building@@QAE@PAXH@Z) referenced in function "public: __thiscall SMC_HQ::SMC_HQ(void *,int)" (??0SMC_HQ@@QAE@PAXH@Z
...where Building is my parent class, and SMC_HQ is my child class. Both are held in separate .dlls. Both of these error messages are in relation to constructor/destructor methods defined in both Building and SMC_HQ .h files.
I am sure this can be done, otherwise noone would be able to inherit the VESSEL3 class, would they?
Last edited:

