Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Sharing source code across projects
Sharing source code across projects [message #189440] Mon, 22 January 2007 18:41 Go to next message
Eclipse UserFriend
Originally posted by: roujesky.mylinuxisp.com

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?

thanx
Re: Sharing source code across projects [message #189809 is a reply to message #189440] Wed, 24 January 2007 18:22 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

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
Previous Topic:How to define Menu positions
Next Topic:Debugging Java interface to 3rd party .exe
Goto Forum:
  


Current Time: Tue Sep 24 12:14:20 GMT 2024

Powered by FUDForum. Page generated in 0.10935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top