如何安装源对Eclipse CDT的图书馆 [英] How to attach source to the libraries on Eclipse CDT

查看:90
本文介绍了如何安装源对Eclipse CDT的图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse CDT的,没有人知道如何附上其源$ C ​​$ CS外部库?

On Eclipse CDT, does someone know how to have the external libraries attached by their source codes?

我想要做的就是单击该元素(如函数,变量)名称,以便Eclipse的开放它的源文件的相应部分(或打开头文件开始,那么开源与另一头击)。这有可能在Eclipse的Java模式。

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.

感谢。

推荐答案

创建库项目。添加外部库进去。打开库项目属性,通过C / C ++通用/路径和符号/源的位置链接源文件夹。
打开主项目属性,并添加库项目到项目引用。

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.

如果你做的一切权利,公开宣言和行动(F3)将打开一个功能的来源。

If you did everything right, Open Declaration action (F3) will open a function sources.

干杯,
马克斯

Cheers, Max

这篇关于如何安装源对Eclipse CDT的图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆