title: OpenCV - DLL missing, but it's not?
body: <p>I am trying just a basic program with OpenCV with the following code:</p>
  
  <pre><code>#include "cv.h"
  #include "highgui.h"
  
  int main()
  {
      IplImage* newImg;
      newImg = cvLoadImage("~/apple.bmp", 1);
      cvNamedWindow("Window", 1);
      cvShowImage("Window", newImg);
      cvWaitKey(0);
      cvDestroyWindow("Window");
      cvReleaseImage(&amp;newImg);
      return 0;
  }
  </code></pre>
  
  <p>When I run this, I get </p>
  
  <blockquote>
    <p>The program can't start because
    libcxcore200.dll is missing from your
    computer.  Try reinstalling the
    program to fix this problem.</p>
  </blockquote>
  
  <p>However, I can see this DLL.  It exists.  I have added the following to the input dependencies for my linker</p>
  
  <blockquote>
    <p>C:\OpenCV2.0\lib\libcv200.dll.a
    C:\OpenCV2.0\lib\libcvaux200.dll.a
    C:\OpenCV2.0\lib\libcxcore200.dll.a
    C:\OpenCV2.0\lib\libhighgui200.dll.a</p>
  </blockquote>
  
  <p>What gives? I'm using visual studio 2008.</p>
  
  <p>When I link the .dll files instead of .dll.a files, I get </p>
  
  <blockquote>
    <p>fatal error LNK1107:invalid or corrupt
    file: cannot read at 0x3F8
    libcv200.dll</p>
  </blockquote>