prevent auto-adding include directories (-I)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

prevent auto-adding include directories (-I)

610 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcentric on Wed Oct 19 17:51:38 MST 2011
The eclipse behaviour is to scan all projects in the current workspace for header files that might be included in any project, and adds any directory containing header files to the include path of every project in the workspace where they might fit.

This may be convenient in some cases, but in others completely messes things up. I was expecting projects to be independent from each other, or at most reference another library project (and that should only happen after ticking the corresponding box in the project references.

How can I prevent projects from having their internals implicitly and automatically added as include path in other projects? That's not a feature, that's dangerous.

Thanks!
0 项奖励
回复
1 回复

603 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Oct 20 05:28:20 MST 2011
Are you talking about the compiler settings "Directories" page or something else? AFAIK, that is the only place that the build system gets its include paths from, and it is not added to automatically. In fact you will see lots of posts in the forum where people thought it was being done automatically.

perhaps you could explain in greater detail what you are seeing.
0 项奖励
回复