Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » build of referenced projects
build of referenced projects [message #545840] Fri, 09 July 2010 11:24 Go to next message
yossi  is currently offline yossi Friend
Messages: 2
Registered: July 2010
Junior Member
hi,

this is probably a stupid question.. but:

How to configure eclipse/CDT that referenced projects will not bu built?

I have several CDT projects, I want that project A will have a reference to project B (in "referenced projects") so the indexer will be able to recognize code functions from B used in A. But I don't want that the builder will try to build B when I build A. How to do that?

Thanks,
yossi
Re: build of referenced projects [message #545862 is a reply to message #545840] Fri, 09 July 2010 13:00 Go to previous messageGo to next message
Edzard Egberts is currently offline Edzard EgbertsFriend
Messages: 57
Registered: July 2009
Member
> How to configure eclipse/CDT that referenced projects will not bu built?
>
> I have several CDT projects, I want that project A will have a reference
> to project B (in "referenced projects") so the indexer will be able to
> recognize code functions from B used in A. But I don't want that the
> builder will try to build B when I build A. How to do that?

The indexer parses header files also when they are not belonging to a
referenced project. So you should not reference the project B, but fill
in the path to include files of B to project preferences of A. Anyway B
must be a library, because I don't know of another way to share code
between two projects. To get a reference to code of B, there must be a
libB.a and filled in as "B" to library list. Just if you only want to
use declarations, like enum values, it's sufficient only to tell about
header files.
Re: build of referenced projects [message #545871 is a reply to message #545862] Fri, 09 July 2010 13:45 Go to previous messageGo to next message
yossi  is currently offline yossi Friend
Messages: 2
Registered: July 2010
Junior Member
Thanks. Using the includes worked, but when I tried this I found a better thing - there's a "references" tab under "paths and symbols" which seems to allow referencing another project just the way I wanted
Re: build of referenced projects [message #545878 is a reply to message #545871] Fri, 09 July 2010 13:56 Go to previous message
Edzard Egberts is currently offline Edzard EgbertsFriend
Messages: 57
Registered: July 2009
Member
yossi schrieb:
> Thanks. Using the includes worked, but when I tried this I found a
> better thing - there's a "references" tab under "paths and symbols"
> which seems to allow referencing another project just the way I wanted

Yes, I see. Thank you too, I'm anyway only giving hints, to learn for my
self, whether they are working. ;o)
Previous Topic:CDT Indexing and RSE issue
Next Topic:Toolchain problems
Goto Forum:
  


Current Time: Fri Mar 29 10:26:07 GMT 2024

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

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

Back to the top