How to connect source to libraries on Eclipse CDT

Does the Eclipse CDT anyone know how to have external libraries attached with their source code?

What I want to do is click on the element names (e.g. function, variable) so that Eclipse opens the corresponding part of the source file (or first opens the header file, then opens the source code with another click in the header). This is possible in Java Eclipse mode.

Thanks.

+6
source share
2 answers

Create a library project. Add an external library to it. Open library project Properties, source folder folders through C / C ++ General / Paths and symbols / Source location. Open the main Properties project and add the library project to the Project Directory.

If you did everything correctly, the Open Declaration action (F3) will open the sources of functions.

Cheers, Max

+9
source

In the project explorer you can

  • right click folder name
  • click on backup configurations.
  • select exclude from assembly
0
source

Source: https://habr.com/ru/post/893324/


All Articles