title: Header file not found (boost/bind.hpp)
body: <p>I'm developing a project with boost and the preproc doesn't find the boost header files for a mysterious reason.</p>
  
  <p>I'm on a xUbuntu 32 bits and I use <code>g++</code> and <code>boost 1.55.0</code></p>
  
  <p><br/><strong>The error:</strong> <code>main.cpp:1:26: fatal error: boost/bind.hpp: No such file or directory</code></p>
  
  <p>If I comment this include, it's the next include who is not found so the problem isn't one file in particular.</p>
  
  <p><br/><strong>The code:</strong></p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include "boost/bind.hpp" // just to be sure I test with "" and &lt;&gt;
  #include &lt;boost/asio.hpp&gt;
  #include &lt;sys/types.h&gt;
  </code></pre>
  
  <p><br/><strong>The makefile:</strong></p>
  
  <pre><code>NAME            = myProject
  
  INSTALL_DIR     = /usr/local/bin
  
  FILES_DIR       = /etc/myProject
  
  RC_FILE         = ./scripts/myproject.rc
  
  SRC             = main.cpp
  
  OBJ             = $(SRC:.cpp=.o)
  
  CC              = g++
  
  IFLAGS          = -I./boost/
  
  LFLAGS          = -pthread -L./boost/stage/lib/ -lboost_system-mt -lboost_regex-mt -lboost_filesystem-mt
  
  RM              = rm -f
  
  all     :  $(OBJ)
             $(CC) -o $(NAME) $(OBJ) $(IFLAGS) $(LFLAGS)
  
  install :
            mkdir -p $(INSTALL_DIR)
            mkdir -p $(FILES_DIR)
            cp $(NAME) $(INSTALL_DIR)
            cp $(RC_FILE) /etc/init.d/
            insserv $(RC_FILE)
  
  remove  :
            insserv --remove $(RC_FILE)
  
  clean   :
            find . -name "*~" -exec rm {} \;
            find . -name "*.o" -exec rm {} \;
  
  fclean  : clean
            $(RM) $(NAME)
  
  re      : clean all
  
  .PHONY  : install remove clean fclean
  </code></pre>
  
  <p><br/><strong>The main.cpp and the makefile are in</strong> <code>whatever/myproject/</code></p>
  
  <p>The boost library is in <code>whatever/myproject/boost/</code></p>
  
  <p><strong>The boost libs (.a and .so) are in</strong> <code>whatever/myproject/boost/stage/lib/</code></p>
  
  <p><strong>The boost headers are in</strong> <code>whatever/myproject/boost/boost/</code></p>
  
  <p><br/>
  I've searched for about 2 hours, tried everything I can think of without success, so thank you very much in advance to the person who can resolve this problem.</p>
  
  <p><br/><strong>Edit:</strong></p>
  
  <pre class="lang-sh prettyprint-override"><code>Bidule0hm make -n
  g++ -c -o main.o main.cpp
  g++ -o myProject main.o -I./boost/ -pthread -L./boost/stage/lib/ -lboost_system-mt -lboost_regex-mt -lboost_filesystem-mt
  </code></pre>