title: opencv/visual studio : error LNK2019: unresolved external symbol
body: <p>I have a problem : error LNK2019: unresolved external symbol [...] referenced in function main</p>
  
  <pre><code> #include &lt;opencv2/highgui/highgui.hpp&gt;
  
  using namespace std;
  using namespace cv;
  
  int main(int argc, char * const argv[])
  {
      cvNamedWindow("P2", CV_WINDOW_AUTOSIZE); 
      //path to image ex : c:/Users/image.jpg
      CvCapture* capture = cvCreateFileCapture("path to image"); 
      IplImage* frame;
  
      while (1) { 
          frame = cvQueryFrame(capture);
          if (!frame) break; cvShowImage("P2", frame); char c = cvWaitKey(0); if (c == 27) break;
      } 
      cvReleaseCapture(&amp;capture); cvDestroyWindow("P2"); 
  
      return 0;
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/RzGro.jpg" rel="nofollow">enter image description here</a></p>
  
  <p>I start my project by following tutorial, the same configuration to use OpenCV with visual Studio and Eclipse but I have the same error.</p>