[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Sharing source code across projects

Robert wrote:
I am using Nios II Integrated Development Environment Version: 5.1 Build: 112.4. This is a version of Eclipse used in Altera embedded development. I want to share C and h files across 2 projects. For instance, I have one project for a certain device (A) and now I am starting a new project for another device (B). I only want to copy the source code from A to B which needs to be modified. Fully 80% of the code in B is an exact duplicate of what is in A. I would like to just reference the source files in A from B. Is there a way to reference\include file from project A in project B without creating a copy of the files?

I don't know the C/C++ tools, but with the JDT you would create a third project, C, to contain the code that is shared between A and B, then set up both A and B to depend on C in their build paths.


Hope this helps,
	Eric