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.
To use Eclipse for C/C++ programming, you need a C/C++ compiler. On Windows, you could install either MinGW GCC or Cygwin GCC. Choose MinGW if you are not sure, because MinGW is lighter and easier to install, but having less features.
Launch Eclipse → Help → Install New Software → In "Work with" field, pull down the drop-down menu and select "Kepler - http://download.eclipse.org/releases/kepler" (or juno for Eclipse 4.2; or helios for Eclipse 3.7). In "Name" box, expand "Programming Language" node ⇒ Check "C/C++ Development Tools" ⇒ "Next" ⇒ ...
The CDT is Eclipse's C/C++ Development Tooling project. It is an industrial-strength C/C++ IDE that also serves as a platform for others to provide value-added tooling for C/C++ developers.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With