title: How to create a C++ project in VS Code and link main, functions and header?
body: <p>I am unable to create a multifile project in Visual Studio Code.</p>
  
  <p>I've tried multiple extensions, manual folder creations, linking with paths to header files. The result is that is is impossible to compile anything.</p>
  
  <p>I would like it to do in a similar way as in the tutorial for VS: <a href="https://www.learncpp.com/cpp-tutorial/programs-with-multiple-code-files/" rel="nofollow noreferrer">https://www.learncpp.com/cpp-tutorial/programs-with-multiple-code-files/</a></p>
  
  <p>main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;functions.h&gt;
  
  using namespace std;
  
  int main()
  {
  
      cout &lt;&lt; "return value is: " &lt;&lt; add(3,4);
      cout &lt;&lt; "\nreturn value is: " &lt;&lt; add(1.2,3.4);
      cout &lt;&lt; "\nreturn value is: " &lt;&lt; add(5);
  
      return 0;
  }
  </code></pre>
  
  <p>functions.cpp:</p>
  
  <pre><code>double add ( double x, double y)
  {
      return x + y;
  }
  
  int add ( int x)
  {
      return add(1.2,3.4) + x;
  }
  </code></pre>
  
  <p>functions.h:</p>
  
  <pre><code>double add ( double x, double y);
  int add ( int x);
  </code></pre>
  
  <p>I want the whole thing to compile, nothing else. Now I am getting an error as those files are not linked as a project. How can I do it in a similar way as in the link provided? </p>