title: OpenCV visual studio 2013 linker error 1104
body: <p>I have try to configure visual studio 2013 to program using opencv. My OS is 64 bit and I have followed the below steps.I have extracted the opencv to C:.</p>
  
  <ol>
  <li>Create a console application.</li>
  <li>In properties set C/C++ section ->addtional include directories set to  C:\opencv\build\include.</li>
  <li><p>In properties set Linker section ->general->Additional Libarary directories set to  C:\opencv\build\include\x64\vc12\lib</p></li>
  <li><p>Then In Linker->input->Additional Dependencies I add following  </p>
  
  <p><strong><em>opencv_calib3d249d.lib
  opencv_contrib249d.lib
  opencv_core249d.lib
  opencv_features2d249d.lib
  opencv_flann249d.lib
  opencv_gpu249d.lib
  opencv_highgui249d.lib
  opencv_imgproc249d.lib
  opencv_legacy249d.lib
  opencv_ml249d.lib
  opencv_nonfree249d.lib
  opencv_ocl249d
  opencv_objdetect249d.lib
  opencv_photo249d.lib
  opencv_stitching249d.lib
  opencv_superres249d.lib
  opencv_ts249d.lib
  opencv_video249d.lib
  opencv_videostab249d.lib</em></strong> </p></li>
  </ol>
  
  <p>these are the names of the file in my C:\opencv\build\x64\vc12\lib folder(there are two versions opencv_calib3d249d and opencv_calib3d249(without d at end))</p>
  
  <p>and then I add following code to my cpp file and try to run. </p>
  
  <pre><code>#include "opencv2/highgui/highgui.hpp"
  #include &lt;iostream&gt;
  
  
  using namespace cv;
  using namespace std;
  
  int main(int argc, const char** argv)
  {
      Mat img = imread("galpatha.JPG", CV_LOAD_IMAGE_UNCHANGED); //read the image data in the file "MyPic.JPG" and store it in 'img'
  
      if (img.empty()) //check whether the image is loaded or not
      {
          cout &lt;&lt; "Error : Image cannot be loaded..!!" &lt;&lt; endl;
          //system("pause"); //wait for a key press
          return -1;
      }
  
      namedWindow("MyWindow", CV_WINDOW_AUTOSIZE); //create a window with the name "MyWindow"
      imshow("MyWindow", img); //display the image which is stored in the 'img' in the "MyWindow" window
  
      waitKey(0); //wait infinite time for a keypress
  
      destroyWindow("MyWindow"); //destroy the window with the name, "MyWindow"
  
      system("pause");
      return 0;
  }
  </code></pre>
  
  <p>it gives me the error </p>
  
  <p><strong><em>Error    1   error LNK1104: cannot open file 'opencv_calib3d249d.lib'    c:\Users\Kasun\documents\visual studio 2013\Projects\OpenCV_test\OpenCV_test\LINK   OpenCV_test</em></strong></p>