c++ - Static struct linker error -


Structure Structure Static Hubbish White; Stable hbr yellow; };

But this is not working, I am getting: Error 4 error LNK2001: Unsolved external symbol "Public: Static structure HBRUHHU * Brushed white" < P> Why?

The idea is to be able to use brushes :: white , brushes :: yellow for example brush .

You must define static members somewhere, usually in the .cxx file, such as:

  hbrush brush :: white;  

The reason for this is that the header file does not define the definition, only it declares.


Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -