title: Box2D can't find it's eponymous head(er)
body: <p>I'm trying to compile the helloworld application that comes with Box2D. Unfortunately I'm not having a lot of luck...</p>
  
  <p>At first I was having a compile error that went like so:</p>
  
  <pre><code>HelloWorld.cpp:19:25: fatal error: Box2D/Box2D.h: No such file or directory
  </code></pre>
  
  <p>The line in question is as so:</p>
  
  <pre><code>#include &lt;Box2D/Box2D.h&gt;
  </code></pre>
  
  <p>I went, oh, well it's in it's own directory called helloworld. It needs to be moved out into the sunshine (root directory of the engine), where a /Box2D/Box2D.h actually exists...</p>
  
  <pre><code>HelloWorld.cpp:19:25: fatal error: Box2D/Box2D.h: No such file or directory
  </code></pre>
  
  <p>Uh, maybe if I changed the line like so?</p>
  
  <pre><code>#include &lt;/Box2D/Box2D.h&gt;
  </code></pre>
  
  <p>Let's try that.</p>
  
  <pre><code>HelloWorld.cpp:19:25: fatal error: /Box2D/Box2D.h: No such file or directory
  </code></pre>
  
  <p>Joy! The same error, with an extra character.</p>
  
  <p>After about 15 minutes spent furiously googling, I figured out that I was discluding an -I from the compile path. It now looked like this:</p>
  
  <pre><code>g++ -Wall -c -I. "%f"
  </code></pre>
  
  <p>Try compile...Success! Now to move onto build, which shouldn't be a problem at -</p>
  
  <pre><code>HelloWorld.cpp:19:25: fatal error: Box2D/Box2D.h: No such file or directory
  </code></pre>
  
  <p>Suddenly a helloworld program doesn't seem simple at all.</p>
  
  <p>I tried adding -I to my build path to no avail:</p>
  
  <pre><code>g++ -Wall -o "%e" "%f"
  g++ -Wall -o -I. "%e" "%f"
  </code></pre>
  
  <p>Neither worked.</p>
  
  <p>What am I to do, to conquer this vile HelloWorld application?</p>