View Single Post
  #1 (permalink)  
Old August 19th, 2003, 03:33 AM
amotsn amotsn is offline
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default A problem with static data members in c++

When I run the following code in vc++ I get linker error 2001.
What is the problem and what can be done?
the code:

class a{
protected:static int aa;
public:void doo();
};
void a::doo(){aa=5;}
void main(){}


Reply With Quote