I'm developing a project with boost and the preproc doesn't find the boost header files for a mysterious reason.
I'm on a xUbuntu 32 bits and I use g++ and boost 1.55.0
The error: main.cpp:1:26: fatal error: boost/bind.hpp: No such file or directory
If I comment this include, it's the next include who is not found so the problem isn't one file in particular.
The code:
#include "boost/bind.hpp" // just to be sure I test with "" and <>
#include <boost/asio.hpp>
#include <sys/types.h>
The makefile:
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
The main.cpp and the makefile are in whatever/myproject/
The boost library is in whatever/myproject/boost/
The boost libs (.a and .so) are in whatever/myproject/boost/stage/lib/
The boost headers are in whatever/myproject/boost/boost/
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.
Edit:
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
 
     
    