Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » [CDT] export a symbol to project in refence
[CDT] export a symbol to project in refence [message #1822550] Mon, 09 March 2020 13:54 Go to next message
Eclipse UserFriend
Hi everyone,

On CDT, I have a project composed of a main project (with main) named "Proj_A"and a sub project "Proj_B".

"Proj_B"' build a static lib. It is configured as a "reference" in the configuration of "Proj_A". ('Paths and Symbol' menu)

I would like to provide a symbol from "Proj_A" to "Proj_B" (depending of the configuration of "Proj_A").
For example, "Proj_A" define the symbol TRACE_DEBUG=1, and "Proj_B" need this information. How can I give this symbol to "Proj_B"?

In the IDE, I see that in Proj_A I can export symbol ('Paths and Symbol' menu).
This print : TRACE_DEBUG[exp]

But I can't retrieve this symbol in "Proj_B".
Could you please help me on that subject?

Regards
Gregory
Re: [CDT] export a symbol to project in refence [message #1822636 is a reply to message #1822550] Tue, 10 March 2020 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Export on "Paths and Symbols" doesn't do what you apparently think it does.
It writes files which can be imported into another project.
It's a kind of easy project configuration to reduce typing.
It is in no way dynamic.
Any changes made in A must be manually re-exported then re-imported to B.

What you probably want is a header file in project A that can be included by project B.
Re: [CDT] export a symbol to project in refence [message #1822647 is a reply to message #1822636] Tue, 10 March 2020 14:07 Go to previous message
Eclipse UserFriend
Long time I investigated "pre / post processing" . Run /used DOS batch files after compiler was done.
I wonder if similar process could be used to pass the required data between applications.
Previous Topic:Title changed _ HOW TO CLEAR "Display Selected Console" menu?
Next Topic:Exclude from build
Goto Forum:
  


Current Time: Wed Jul 09 23:15:07 EDT 2025

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

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

Back to the top