Actually i have a public variable called 'moja' in class CRocket. Declaration looks like this: staticint moja;
And then in .h file after class declaration i have: int CRocket::moja=0;
When i use this variable in .cpp file, for example in constructor: moja++;
i have error from my first post.
Try putting the definition int CRocket::moja=0;
in the .cpp file instead. Based on what you posted, I assume the header file is being included in multiple locations, and so the static variable 'moja' is being defined multiple times.
If that doesn't fix your problem(s), please post more code :)