Why do classes with static data receive errors when linking?
1
Expert's answer
2010-07-28T11:04:27-0400
Because the static data of the class should be defined only in one translation unit. If you do not do this, you will probably get a “undefined external” configuration error. The usual place to determine static variables of the class is a *. cpp file of this class.
Comments
Leave a comment