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

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-12T06:19:31Z Indexed on 2010/04/12 6:23 UTC
Read the original article Hit count: 540

Filed under:
|
|
|

Hi all,

Im sure there is a very simple solution for this.

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

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

The problem i'm having is that files are now duplicated in ~/wherever/project, and I would like to avoid that, specially so I know which copy of the file to commit.

Is this possible? Im sure it is, but cant get it.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c++

Related posts about eclipse