title: How to use the OpenCV 2.4 static libraries with Visual Studio?
body: <p>I'm trying to set up OpenCV 2.4 as follows:</p>
  
  <ul>
  <li>I've downloaded and extracted the precompiled package to <code>C:\OpenCV240</code>.</li>
  <li>In Visual Studio, I've added <code>C:\OpenCV240\build\include</code> as an additional include directory.</li>
  <li>Furthermore, I've added <code>C:\OpenCV240\build\x86\vc10\staticlib</code> as an additional library directory.</li>
  <li>And I've specified all available .lib files as additional dependencies.</li>
  </ul>
  
  <p>When I compile my "Hello World" program (which compiles just fine when using the DLLs), I get a lot error messages like this:</p>
  
  <blockquote>
    <p>1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in opencv_core240d.lib(matrix.obj)</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>