Reputation: 3
The include file exists in "D:\c++\workspace\NewLib". NewLib is another project. I have done the configuration:
Under Project > Properties > C/C++ General > Paths and Symbols > Libraries, I've already added the include directory "D:\c++\workspace\NewLib\MathFuncsLib.h".
Under Project > Properties > C/C++ General > Paths and Symbols > Libraries, I've already added the include directory "${workspace_loc:/NewLib/}"
Under Project > Properties > C/C++ General > Paths and Symbols > Library Path, "D:\c++\workspace\NewLib"
Project > Properties > C/C++ General > Paths and Symbols > References,"NewLib" is selected.
But the error is there: fatal error: NewLib\MathFuncsLib.h: No such file or directory #include "NewLib\MathFuncsLib.h"
Upvotes: 0
Views: 2288
Reputation: 4340
You haven't specified path to folder where "NewLib"
resides. Because your header reads "#include "NewLib\MathFuncsLib.h"
So you need to specify D:\c++\workspace
in your path.
Upvotes: 1