prevent auto-adding include directories (-I)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

prevent auto-adding include directories (-I)

607件の閲覧回数
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 返信

600件の閲覧回数
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 件の賞賛
返信