title: error LNK2001: unresolved external symbol public: static class
body: <p>I cannot figure out why i am recieving this error. Can anyone lend a hand.
  I need to declare VideoCapture capture in the header file and call it in Video.cpp</p>
  
  <p><strong>Video.h</strong></p>
  
  <pre><code>class Video
  {
      public:
  
      static VideoCapture capture;
  
      //Default constructor
      Video();
  
      //Declare a virtual destructor:
      virtual ~Video();
  
      //Method
      void Start();   
  
      private:
  };
  </code></pre>
  
  <p><strong>Video.cpp</strong></p>
  
  <pre><code>#include "StdAfx.h"
  #include "Video.h"
  #include "UserInfo.h"
  #include "Common.h"
  
  void Video::Start()
  {
    while(1)
    {
      Mat img;
  
      bool bSuccess = capture.read(img); // read a new frame from video
  
       if (!bSuccess) //if not success, break loop
      {
                      cout &lt;&lt; "End of video" &lt;&lt; endl;
                     break;
      }
  
      imshow("original video", img); //show the frame in "Original Video" window
  
      if(waitKey(30) == 27) //wait for 'esc' key press for 30 ms. If 'esc' key is pressed, break loop
     {
              cout &lt;&lt; "esc key is pressed by user" &lt;&lt; endl; 
              break; 
     }
    }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated</p>