I have seen related questions asked but cannot find a simple and precise answer to the following question:
Note: updated to 4.10.0 and CDT 9.6.0, problem persists
I am using eclipse as editor, not as builder.
I have a eclipse dev project (foo) struct like this
foo/
src/
bar.c
include/
bar.h
man/
test/
etc/
make && make install creates:
/usr/
include/
foo/
bar.h
After building, the indexer pulls in both bar.h header files and all my editor files are polluted with red and unresolved references since it can't figure out which header to use.
I have tried using resource filters with no luck - files, dirs, relative paths, names, tried playing with indexer settings, include file settings, exclude from build on and on. No luck.
Please reply only if you have experience with this particular problem, I must I be missing some steps.
For example, I set up resource filter to exclude location matching /usr/include/foo and reindex and no change. Am I using this wrong?
Food for thought for any eclipse devs: maybe eclipse could recognize a ".exclude" created in a file in a folder to exclude from indexing? Or perhaps let me right-click on the eclipse discovered system include folders (i.e. /usr/include) from project browser and exclude folders of my choice?