“Export” button in Eclipse CDT “Paths and Symbols” dialog?

大兔子大兔子 提交于 2019-12-18 03:57:09

问题


On the Includes tab of the Paths and Symbols section of the Project Properties dialog in the Eclipse CDT, there is an "Export" button:

The best documentation I have found says that this "toggles whether the selected include path is exported or not." If I click it, it changes to "Unexport" and "[exp]" is appended to the selected include path.

What exactly does this do? What does it mean to "export an include path?"


回答1:


This button makes the path in question available to projects which reference your current project. Project references can be configured using the References tab in the same "Paths and Symbols" group shown in your screenshot.

This functionality has been improved in the next version of CDT (7.x). It allows you to create dependencies between projects and have include, library and library files being propagated automatically. (In the next version you can alter the order of the referenced projects...)

See also the Export Settings page which can be enabled with

Window > Preferences > C/C++ > Property Page Settings > Display "Export Settings" Tab



来源:https://stackoverflow.com/questions/1790631/export-button-in-eclipse-cdt-paths-and-symbols-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!