Jump to content
  • Advertisement

CornyKorn21

Member
  • Content count

    95
  • Joined

  • Last visited

Community Reputation

624 Good

About CornyKorn21

  • Rank
    Member
  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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!