title: How to set up boost for Visual studio code
body: <p>So I basically built the entire boost library and put them in C:\boost\include\boost-1_73. But I got a feeling that I have to include more steps before I can use this library. I followed this guide up until setting it up for visual studio code. So now I am scouring the internet to search how to set it up. Here is the guide that I followed. But I didnt include it in the program_files directory like in the guide.</p>
  <p><a href="https://gist.github.com/sim642/29caef3cc8afaa273ce6" rel="nofollow noreferrer">https://gist.github.com/sim642/29caef3cc8afaa273ce6</a></p>
  <p>In my Task.Json I have</p>
  <pre><code>{
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;tasks&quot;: [
          {
              &quot;type&quot;: &quot;shell&quot;,
              &quot;label&quot;: &quot;C/C++: g++.exe build active file&quot;,
              &quot;command&quot;: &quot;C:\\new\\mingw-w64\\i686-8.1.0-posix-dwarf-rt_v6-rev0\\mingw32\\bin\\g++.exe&quot;,
              &quot;args&quot;: [
                  &quot;-g&quot;,
                  &quot;${fileDirname}\\**.cpp&quot;,
                  &quot;-o&quot;,
                  &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;,      
              ],
              &quot;options&quot;: {
                  &quot;cwd&quot;: &quot;${workspaceFolder}&quot;
              },
              &quot;problemMatcher&quot;: [
                  &quot;$gcc&quot;
              ],
              &quot;group&quot;: {
                  &quot;kind&quot;: &quot;build&quot;,
                  &quot;isDefault&quot;: true
              }
          }
      ]
  }
  </code></pre>
  <p>In my main settings.json I have</p>
  <pre><code>{
      &quot;terminal.integrated.shell.windows&quot;: &quot;C:\\WINDOWS\\System32\\cmd.exe&quot;,
      &quot;code-runner.saveFileBeforeRun&quot;: true,
      &quot;code-runner.saveAllFilesBeforeRun&quot;: true,
      &quot;code-runner.fileDirectoryAsCwd&quot;: true,
      &quot;code-runner.ignoreSelection&quot;: true,
      &quot;haskelly.exec.reuseTerminal&quot;: true,
      &quot;C_Cpp.updateChannel&quot;: &quot;Insiders&quot;,
      &quot;r.rterm.windows&quot;: &quot;C:\\Program Files\\R\\R-3.6.1\\bin\\R&quot;,
      &quot;vsicons.dontShowNewVersionMessage&quot;: true,
      &quot;files.autoSave&quot;: &quot;onWindowChange&quot;,
      &quot;workbench.colorCustomizations&quot;: {},
      &quot;editor.tokenColorCustomizations&quot;: null,
      &quot;php.validate.executablePath&quot;: &quot;&quot;,
      &quot;code-runner.executorMap&quot;: {
                          &quot;cpp&quot;: &quot;cd $dir &amp;&amp; g++ *.cpp -o $fileNameWithoutExt -I C:/boost/include/boost-1_73 -L C:/boost/lib &amp;&amp; $fileNameWithoutExt.exe&quot;
  
      },
      &quot;code-runner.executorMapByFileExtension&quot;: {},
      &quot;cmake.configureOnOpen&quot;: true,
      &quot;explorer.confirmDelete&quot;: false,
      &quot;editor.formatOnSave&quot;: true,
      &quot;workbench.statusBar.visible&quot;: true,
      &quot;workbench.iconTheme&quot;: &quot;material-icon-theme&quot;,
      &quot;workbench.colorTheme&quot;: &quot;Better Solarized Light&quot;,
      &quot;code-runner.clearPreviousOutput&quot;: true,
      &quot;code-runner.runInTerminal&quot;: true,
      &quot;C_Cpp.loggingLevel&quot;: &quot;Debug&quot;,
      &quot;explorer.sortOrder&quot;: &quot;type&quot;,
      &quot;C_Cpp.default.forcedInclude&quot;: [],
      &quot;C_Cpp.default.includePath&quot;: [
          &quot;C:\\boost\\include\\boost-1_73&quot;,
      ],
  }
  </code></pre>
  <p>How would I include the linker as well(do I even to include the linker?) or if I am doing it properly it all? Will I need to include the path of boost inside Task? It seems to me that the only I did was include it in the intellisense and I am a bit lost now on how to use it. I would greatly appreciate the help.</p>
  <p>Edit I made the changes with the following code modified  and I created a CPP file to test the lambda header file</p>
  <pre><code>#include &lt;boost/lambda/lambda.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;iterator&gt;
  #include &lt;algorithm&gt;
  
  int main()
  {
      using namespace boost::lambda;
      typedef std::istream_iterator&lt;int&gt; in;
  
      std::for_each(
          in(std::cin), in(), std::cout &lt;&lt; (_1 * 3) &lt;&lt; &quot; &quot;);
  }
  </code></pre>
  <p>And apparently the file doesnt exist:</p>
  <pre><code>fatal error: boost/lambda/lambda.hpp: No such file or directory
  #include &lt;boost/lambda/lambda.hpp&gt;
  </code></pre>
  <p>Note that I am running everything with the visual studio code runner extension.</p>