title: C++ Undefined reference to Holder::menus (Struct)
body: <p>Ok, so I have a struct defined as thus:</p>
  
  <pre><code>#ifndef __STRUCTS_H__
  #define __STRUCTS_H__
  
  struct counts {
      int views = 0;
      int inits = 0;
  };
  
  #endif
  </code></pre>
  
  <p>I have a class that is going to have entirely static methods and variables that are accesable by all classes.</p>
  
  <pre><code>#ifndef __HOLDER_H__
  #define __HOLDER_H__
  
  #include "Structs.h"
  
  class Holder
  {
  public:
      static counts menus;
  
      Holder() {
          menus = counts();
      }
  };
  
  #endif
  </code></pre>
  
  <p>And so I tried to acess this method and the compiler spits out the error "Undefined reference to Holder::menus"</p>
  
  <p>Here is the segment that triggers this (HelloWorldScene.cpp)</p>
  
  <pre><code>#include "HelloWorldScene.h"
  #include "SimpleAudioEngine.h"
  #include "Holder.h"
  #include "Structs.h"
  
  USING_NS_CC;
  
  HelloWorld::HelloWorld(void)
  {
      //Constructor
      Debug::crashLog("**__Menu Deinit__**");
      //SUDO Missing stuff
      Holder::menus.inits -= 1;
  }
  </code></pre>
  
  <p>Why is it having issues?</p>