jackhab
Occasional Contributor
5 years agoAdding project root directory to include paths does not work
I was trying to add project root directory to include search path in Project > Properties > Nios II Application Paths > Application include directories.
(This is needed in case Project/somedir/file.c needs to include Project/file.h using #include "file.h" instead of #include "../file.h")
When I select current project it is converted to relative path and added as "./", which adds "-I./" switch to compilation command.
This breaks compilation because gcc does accept "-I./" - the correct syntax should be "-I." without slash.
The issue can be solved by manually removing the slash in APP_INCLUDE_DIRS in the Makefile.
IMO, looks like EDS bug.