title: Trying to compile OpenCV program, but getting LNK2038 error in Visual Studio 2012
body: <p>I have followed <a href="http://opencv-srf.blogspot.no/2013/05/installing-configuring-opencv-with-vs.html" rel="nofollow">this</a> tutorial for setting up OpenCV with Visual Studio 2012 and have changed all references to x86 to x64 like the tutorial suggested. But when running the example code given I get the following error message (in addition to 236 other):</p>
  
  <p><code>error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj   c:\Users\user\documents\visual studio 2012\Projects\NewProject\NewProject\opencv_core246d.lib(array.obj)    NewProject
  </code> </p>
  
  <p>I'm not sure how to solve this and other suggested solutions given for the same error message has not worked for me.</p>