title: header.h: No such file or directory even though source and header are in same directory
body: <p>I have made a header and a source but I don't know how to link them up. I looked it up on the web but the commands provided didn't work (or I wouldn't be here :) ).</p>
  
  <p>To compile it (if you use GCC):</p>
  
  <p>Header:</p>
  
  <pre><code>$ gcc -c whatever.h -o whatever.o
  </code></pre>
  
  <p>Source:</p>
  
  <pre><code>$ gcc -c sample.c -o sample.o
  </code></pre>
  
  <p>To link the files to create an executable file:</p>
  
  <pre><code>$ gcc sample.o whatever.o -o sample
  </code></pre>
  
  <p>What did I do wrong. I am using geany for writing (compile error is here) but the commands are executed on a terminal in the same directory. can anybody give me the build commands for geany so whenever I want to include a header I can just compile and run?</p>