title: Error C1083 Cannot open include file: 'opencv2\opencv.hpp' in VS 2015
body: <p>I am trying to run the simple test code below on Visual Studio 2015 with OpenCv 3.1 on windows 10.</p>
  
  <pre><code>#include &lt;opencv2\opencv.hpp&gt;
  using namespace cv;
  int main()
  {
  namedWindow("win");
  waitKey(0);
  return 1;
  }
  </code></pre>
  
  <p>But i get </p>
  
  <blockquote>
    <p>Error C1083 Cannot open include file: 'opencv2\opencv.hpp': No such
    file or directory</p>
  </blockquote>
  
  <p>I have added the Path <code>C: \ opencv \ build \ x64 \ vc14 \ bin</code> to System variable in the Windows Environment variables.</p>
  
  <p>Also in Visual studio I have set the Include Directories <code>C:\opencv\build\include;$(IncludePath)</code> under <code>Project properties &gt; VC++ Directories</code> and also the <code>Linker &gt; Input Additional Dependencies</code> set to <code>opencv_world310d.lib</code> (Debug)</p>
  
  <p>I also have the following setting:</p>
  
  <p>Executable Directories - <code>C:\opencv\build\x64\vc14</code></p>
  
  <p>Library Directories - <code>C:\opencv\build\x64\vc14\lib</code></p>
  
  <p>Additional Library Directories - <code>C:\opencv\build\x64\vc14\lib</code></p>
  
  <p>Please help me resolve this error.</p>