如何将源附加到 Eclipse CDT 上的库
在 Eclipse CDT 上,有人知道如何通过源代码附加外部库吗?
我想要做的是单击元素(例如函数、变量)名称,以便 Eclipse 打开其源文件的相应部分(或首先打开头文件,然后再次单击头文件打开源代码)。这在 Eclipse 的 Java 模式下是可能的。
谢谢。
On Eclipse CDT, does someone know how to have the external libraries attached by their source codes?
What I want to do is to click the element (e.g. function, variable) names so that Eclipse opens the corresponding part of its source file (or open header file initially, then open source with another click in header). It's possible in Eclipse' Java mode.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建一个库项目。将外部库添加到其中。打开库项目属性,通过 C/C++ General/Paths 和 Symbols/Source 位置链接源文件夹。
打开主项目属性并将库项目添加到项目引用中。
如果一切正确,“打开声明”操作 (F3) 将打开函数源。
干杯,
最大限度
Create a library project. Add external library into it. Open library project Properties, link sources folders via C/C++ General/Paths and Symbols/Source location.
Open main project Properties and add library project to Project References.
If you did everything right, Open Declaration action (F3) will open a function sources.
Cheers,
Max
在项目资源管理器中,您可以
In the project explorer you can