Eclipse CDT: import source / header files into my new project without duplicating them

I am sure there is a very simple solution for this.

I have a bunch of .cpp / .h files from a project, for example in a directory ~/files

On the other hand, I want to create a C ++ project using eclipse to work on these files, so I put my workspace on ~/wherever. Then I create a C ++: project ~/wherever/projectand include the source files (located in /~files).

The problem is that the files are now duplicated in ~/wherever/project, and I would like to avoid this, especially so that I know which copy of the file to execute.

Is it possible? I am sure that this is so, but it will not work.

Thanks in advance.

+5
source share
2 answers

You can try:

  • creating a project directly above ~/files(which is not very clean, given the location of the sources in your home directory)
  • using linked folder
  • Import existing sources into your project : all parameters are detailed (when your sources are also managed by VCS, such as CVS, or when your sources are not managed)
+3
source

( "- > - > " ), "". , , "" . "", /, , .

+3

All Articles