25 September 2016

Adding existing header files in Eclipse project

I am facing a strange problem when I add existing header files to an existing Eclipse. I have added the files using Import->File System->Directories and then choosing the necessary files. This works for making the IDE aware of these files and for symbol resolution. Unfortunately, when the project is attempted to be built, there is a failure due to these included header files. I have taken a look at the forums but the only solution provided is to include these new directories in the c/c++ properties of eclipse. strangely, this problem does not happen in visual studio. I felt that Eclipse can also do this, i do not now why this is not done. This can be considered to be a "wishlist" by the respected Eclipse developers.