Jump to content
  • Advertisement
Sign in to follow this  
reaperrar

Unresolved con/destructor externals

This topic is 2591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am getting a unresolved external for my constructor(void) and deconstructor when I try to use the class somewhere. If I comment out the con/destructor declaration/definition in the class, the errors go away and I can compile. The definitions for the con/destructor are empty with no parameters. This is a copy paste from another working class. I'm staring at the screen but I see no reason why it should not be working. I can successfully have my own constructor (with parameters).

If I change the name of the class around the problem isn't fixed.


EDIT: This is basically what I have...
class MyBaseClass
{
public:
MyBaseClass();
~MyBaseClass();
};

class MyDerivedClass1 : public MyBaseClass
{
public:
MyDerivedClass1();
~MyDerivedClass1();
};

class MyDerivedClass2 : public MyBaseClass
{
public:
MyDerivedClass2();
~MyDerivedClass2();
};


MyBaseClass::MyBaseClass()
{

}

MyBaseClass::~MyBaseClass()
{

}

MyDerivedClass1::MyDerivedClass1()
: MyBaseClass()
{

}

MyDerivedClass1::~MyDerivedClass1()
{

}

MyDerivedClass2::MyDerivedClass2()
: MyBaseClass()
{

}

MyDerivedClass2::~MyDerivedClass2()
{

}


With derived 1 giving unresolved externals

Share this post


Link to post
Share on other sites
Advertisement
Ugh nvm.

I manually built the static lib the files were in, then recompiled toe project and it worked.

I've never had to manually build a lib to get changes to take effect... not sure what caused it to not function correctly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!