title: g++ #include file not found compiler error
body: <p>I'm currently trying to simply link a file called main.cpp with boost in order to do asio(asynchronous input and output).  I'm using a makefile in order to compile the C++ code into executable form.  However, despite using the -I modifier on my terminal command in Mac OS X, it still cannot find the appropriate directory to search in.  Here is my code in Main</p>
  
  <pre><code>#include &lt;asio.hpp&gt;
  
  int main(){
    return 1;
  }
  </code></pre>
  
  <p>and here is the makefile command that I am using</p>
  
  <pre><code>all:
  g++ -Iboost_1_60_0/boost/ -o main main.cpp
  </code></pre>
  
  <p>In my file structure, boost_1_60_0, main.cpp, and makefile are all on the top level, where asio is in the folder boost which is in the folder boost_1_60_0.  I'm very confused about this and any help would be appreciated! Thanks!</p>
  
  <p>EDIT: Full error is </p>
  
  <pre><code>1 error generated.
  make: *** [all] Error 1
  iMats-2:SerialC++ wfehrnstrom$ make
  g++ -Iboost_1_60_0 -o main main.cpp
  main.cpp:2:10: fatal error: 'asio.hpp' file not found
  </code></pre>