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
- Group Members
- Active Posts 95
- Profile Views 3,666
- Submitted Links 0
- Member Title Member
- Age 32 years old
- Birthday June 30, 1984
CornyKorn hasn't added any contacts yet.