title: Undefined reference to a static member
body: <p>I'm using a cross compiler. My code is:</p>
  
  <pre><code>class WindowsTimer{
  public:
    WindowsTimer(){
      _frequency.QuadPart = 0ull;
    } 
  private:
    static LARGE_INTEGER _frequency;
  };
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>undefined reference to `WindowsTimer::_frequency'</p>
  </blockquote>
  
  <p>I also tried to change it to</p>
  
  <pre><code>LARGE_INTEGER _frequency.QuadPart = 0ull;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>static LARGE_INTEGER _frequency.QuadPart = 0ull;
  </code></pre>
  
  <p>but I'm still getting errors.</p>
  
  <p>anyone knows why?</p>