I am trying to compile a code that has a include directory with some header files in it. One header file is referenced as:
#include <include/A/example.h>
In one of the files.
I also have added the correct path of the folder that has example.h
in the Eclipse:
Project -> Properties -> Includes
However I get this error when I try to build:
fatal error: home/TJ/workspace/myProject/include/A/example.h: No such file or directory
Does anybody know why I get this error?
Thanks
Have you added the directory /home/TJ/workspace/myProject to the path, and not something else, such as home/TJ/workspace/myProject (note the missing leading slash) or /home/TJ/workspace/myProject/include/A?
Also, remember that <> in the #include directive means standard include files, so maybe you should use ""?