title: Boost Library cannot get to work in C++, Include directories not working
body: <p>I recently tried to install boost libraries in C++ 14, and I added it's include paths like:</p>
  
  <p><em>Solution Explorer > Project Name > Property Pages > VC++ Directories > "C:\Program Files (x86)\Microsoft Visual Studio 14.0\boost\boost"</em></p>
  
  <p>I tried to compile after adding this:</p>
  
  <pre><code>#include &lt;boost\variant.hpp&gt;
  </code></pre>
  
  <p>In Error List window, I can see <code>E1696 - cannot open source file "boost\variant.hpp"</code> and I can't compile like before.</p>
  
  <p>Then I tried with adding a backslash like <em>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\boost\boost\"</em>, still didn't work.</p>
  
  <p>I also read <a href="https://stackoverflow.com/questions/4600389/cannot-open-include-file-boost-any-hpp-invalid-argument-in-vs-2010">this</a> post and explicitly specified it's directory, but even didn't work.</p>
  
  <p>Again, I read <a href="https://stackoverflow.com/questions/36612060/i-completely-cannot-include-boost-headers">this</a> post and did exactly same what is in given answer (as I already built project several times) , but still no success.</p>
  
  <p>However, if I include a library like:</p>
  
  <pre><code>#include "C:\Program Files (x86)\Microsoft Visual Studio 14.0\boost\boost\variant.hpp"
  </code></pre>
  
  <p>Now compiler recognizes it, but now I can see more than 100 errors in Error List window, those errors are pointed to header files of boost libraries, not in my project file which has <code>variant.hpp</code> included.</p>
  
  <p>All those errors are <code>E1696 - cannot open source file "boost\&lt;libraryname.hpp&gt;"</code> or <code>E1696 - cannot open source file "boost\&lt;subdirs&gt;\&lt;some other files included in libraryname.hpp&gt;"</code></p>
  
  <p>So, if I remove the line <code>#include "C:\Program Files (x86)\Microsoft Visual Studio 14.0\boost\boost\variant.hpp"</code> from my project's header file, all errors disappear suddenly and project compiles fine! no any single error now!</p>
  
  <p>I want boost to work anyway, so I can use it in projects, but I can't manually edit all those header files and change <code>&lt;boost\...</code> to original locations.</p>
  
  <p>Please help me to get rid of this issue.</p>