title: Microsoft Visual Studio 2013 fatal error LNK1169
body: <p>I am running a very simple test program and I have been running into problems mostly with setting up the OpenCV library with Visual Studio. I am not sure why visual studio can't run this file.</p>
  <p>Here is the code (very simple)</p>
  <pre><code>#include &lt;opencv\cv.h&gt;
  #include &lt;opencv\highgui.h&gt;
  
  int main(){
  IplImage* img = cvLoadImage(&quot;C:/MyOpenCV/Images/MyPic.png&quot;);
  cvNamedWindow(&quot;MyOpenCV&quot;);
  cvShowImage(&quot;MyOpenCV&quot;, img);
  cvWaitKey(0);
  cvDestroyWindow(&quot;MyOpenCV&quot;);
  cvReleaseImage(&amp;img);
  return 0;
  </code></pre>
  <p>This is the error I get:</p>
  <blockquote>
  <p>C:\Users\Matthew\documents\visual studio 2013\Projects\7.8.15\x64\Release\7.8.15.exe : fatal error LNK1169: one or more multiply defined symbols found</p>
  <p>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
  </blockquote>
  <p>Thank you in advance!</p>