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.
CornyKornMember Since 09 Aug 2005
Offline Last Active Apr 27 2016 07:59 PM
- Group Members
- Active Posts 95
- Profile Views 3,535
- Submitted Links 0
- Member Title Member
- Age 31 years old
- Birthday June 30, 1984