Jump to content
  • Advertisement

CornyKorn21

Member
  • Content count

    95
  • Joined

  • Last visited

Everything posted by CornyKorn21

  1. CornyKorn21

    Multiple definition error

    Your definition of Object::ObjectID should be within a source file. Currently if you include your header file in multiple .cpp files the compiler will generate multiple instances of the ObjectID as you have it currently defined "int Object::ObjectID = 0" On a side note I'm not entirely certain how the compiler handles two declarations of a static with the same name in a base class and the derived class as well.
  • 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!