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 May 20 2016 12:17 PM