Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Freaker13

error LNK2005 and multiple inheritance

This topic is 5453 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

Hi all, class cInput inherit from iTask. iTask inherit from iMMPoolObj. iMMPoolObj has a static member cMMPool. When i compile this i get the error: KernelTest.obj : error LNK2005: "private: static class cMMPool iMMPoolObj:ool" (?pool@iMMPoolObj@@0V?$cMMPool@ViMMPoolObj@@@@A) already defined in cInput.obj thx in advance, Freaker13

Share this post


Link to post
Share on other sites
Advertisement
Where is the static variable iMMPoolObj:ool defined? (I don''t mean declared). Me thinks you are including that file somewhere, which you shouldn''t.

ToohrVyk

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!