title: How can I call functions from one .cpp file in another .cpp file?
body: <p>I tried looking this up and got mixed results using header files and such.</p>
  <p>Basically I have multiple .cpp files with all my functions I made for use with binary trees, <a href="https://en.wikipedia.org/wiki/Binary_search_tree" rel="nofollow noreferrer">BST</a>, linked lists, etc.</p>
  <p>Instead of having to copy and paste functions as I need them, I want to just be able to do a:</p>
  <pre><code>#include &lt;myBSTFunctions.h&gt;
  </code></pre>
  <p>And be able to call and use my own functions.</p>
  <p>What are the steps to accomplish this?
  Make a header file with all the function prototypes I used?</p>
  <p>And where should I place the .cpp and header file with all the actually functions?</p>
  <p>Is there a way I can call the directory of the functions file directly?</p>
  <p>I.e., I'm more thinking of having it in the same folder with the main source .cpp file to share with some of my colleagues.</p>
  <p>How can I accomplish this?</p>
  <p>On Windows and the <a href="https://en.wikipedia.org/wiki/MinGW" rel="nofollow noreferrer">MinGW</a> compiler.</p>