Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Managing projects
Managing projects [message #145074] Thu, 12 May 2005 02:52 Go to next message
Eclipse UserFriend
Originally posted by: bluesboys.-remove-this-hotmail.com

Hi all

Is it possible in CDT to include a directory to a project, without CDT
actually copying the files to the project library? I'm making a protocol
which is to be build for to different platforms, and much of the stuff are
the same except the HW-layer.

Therefore I would like to have 2 project which contains the same
directories, except for the Hw-wrapper. So if I change in a shared file in
on project, the change is also applied in the other project, because it's
the same file.

Best Regards
S
Re: Managing projects [message #145082 is a reply to message #145074] Thu, 12 May 2005 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rocketcomp.com.au

I use the same folders for VS and eclipse, but I've found that to import an
existing file into eclipse, I have to cut it out of the directory, paste it
somewhere else and then import it back into the folder. eclipse seems to
actually want the file in the folder rather tan just storing a link to it.

Hansen wrote:
> Hi all
>
> Is it possible in CDT to include a directory to a project, without CDT
> actually copying the files to the project library? I'm making a protocol
> which is to be build for to different platforms, and much of the stuff are
> the same except the HW-layer.
>
> Therefore I would like to have 2 project which contains the same
> directories, except for the Hw-wrapper. So if I change in a shared file in
> on project, the change is also applied in the other project, because it's
> the same file.
>
> Best Regards
> Søren Hansen
>
>
Re: Managing projects [message #145088 is a reply to message #145082] Fri, 13 May 2005 01:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bluesboys.-remove-this-hotmail.com

> Hansen wrote:
>> Hi all
>>
>> Is it possible in CDT to include a directory to a project, without CDT
>> actually copying the files to the project library? I'm making a protocol
>> which is to be build for to different platforms, and much of the stuff
>> are the same except the HW-layer.
>>
>> Therefore I would like to have 2 project which contains the same
>> directories, except for the Hw-wrapper. So if I change in a shared file
>> in on project, the change is also applied in the other project, because
>> it's the same file.
>>
>> Best Regards
>> S
Re: Managing projects [message #145416 is a reply to message #145088] Fri, 13 May 2005 11:38 Go to previous messageGo to next message
Eclipse UserFriend
You could create a seperate project with that common code by specifying the
contents directory in the new project wizard (instead of using the default
directory and then importing the code to there). Then import that project
into the same workspace as your working project and set your working project
to reference it (project properties->Project References)

-Andrew

"Hansen" <bluesboys@-remove-this-hotmail.com> wrote in message
news:d61fij$46l$1@news.eclipse.org...
> > Hansen wrote:
> >> Hi all
> >>
> >> Is it possible in CDT to include a directory to a project, without CDT
> >> actually copying the files to the project library? I'm making a
protocol
> >> which is to be build for to different platforms, and much of the stuff
> >> are the same except the HW-layer.
> >>
> >> Therefore I would like to have 2 project which contains the same
> >> directories, except for the Hw-wrapper. So if I change in a shared file
> >> in on project, the change is also applied in the other project, because
> >> it's the same file.
> >>
> >> Best Regards
> >> S
Re: Managing projects [message #145624 is a reply to message #145074] Wed, 18 May 2005 08:15 Go to previous message
Eclipse UserFriend
Originally posted by: jonas.nightnmode.org

The problem (as I see it) is that your workbench would then contain two
views of the same file which may not be too nice. In your case you should
probably compile the hw-layer in a separate library project, and link with
that library from your main project. Then you make a different
configuration for each hardware (requires you to use Managed projects).

Hansen wrote:

> Hi all

> Is it possible in CDT to include a directory to a project, without CDT
> actually copying the files to the project library? I'm making a protocol
> which is to be build for to different platforms, and much of the stuff are
> the same except the HW-layer.

> Therefore I would like to have 2 project which contains the same
> directories, except for the Hw-wrapper. So if I change in a shared file in
> on project, the change is also applied in the other project, because it's
> the same file.

> Best Regards
> Søren Hansen
Previous Topic:What's needed for multi platform/configuration
Next Topic:target file lock up
Goto Forum:
  


Current Time: Wed Apr 16 04:12:06 EDT 2025

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

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

Back to the top