title: C++ include libraries
body: <p>Ok, so it's been a while, and i'm having problems with #includes</p>
  
  <p>So I'm doing</p>
  
  <pre><code>#include "someheader.h"
  </code></pre>
  
  <p>but it's giving me</p>
  
  <pre><code>fatal error: someheader.h: No such file or directory
  </code></pre>
  
  <p>It's a system wide library I guess you could say.
  I'm running arch linux and I installed the library from the repo, and I think the .h files are in /usr/include.</p>
  
  <p>I could just copy all the header files into the folder my code is in but that would be a hack.</p>
  
  <p>What is the "right" way to do this?</p>
  
  <p>Edit: I wasn't correct by saying the .h files were in /usr/include, what I meant was that the library folder was in there
  So, Emile Cormier's answer worked to a certain extent.
  The problem now is that there are some include in the header file and it seems from the methods I'm trying to access that those includes are not happening
  it's giving my the error</p>
  
  <pre><code>undefined reference to Namespace::Class::method()
  </code></pre>
  
  <p>Edit:
  Ok so the final answer is:</p>
  
  <pre><code>#include &lt;library_name/someheader.h&gt;
  </code></pre>
  
  <p>And compile with </p>
  
  <pre><code>g++ code.cpp -llibrary_name
  </code></pre>