Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Includes per configuration
Includes per configuration [message #209689] Thu, 14 February 2008 08:39 Go to next message
Eclipse UserFriend
Originally posted by: sebastian.huber.embedded-brains.de

Hi,
I set up a standard makefile project and want to use different
configurations to build artifacts for different hardware boards in a
cross-compiler environment. The build process works fine. Each
configuration uses header files in the standard include paths provided
by the cross-compiler (gcc) and header files in board specific include
paths. I added the path settings to Project Properties->C/C++
General->Paths and Symbols->Includes. The problem is now that if I
switch the configuration the project->Includes in the Project Explorer
won't be updated (= change of board specific include paths). This is bad
since many things seem to rely on this e.g. automatic opening of include
files from the file outline. Is there a way to update the project->Includes?

Ciao,
Sebastian Huber
Re: Includes per configuration [message #209961 is a reply to message #209689] Mon, 18 February 2008 17:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sebastian,

The "Includes" that show up in the C/C++ Projects view are controlled by
the "Build configuration for indexer" setting under C/C++ General ->
Indexer.

After you modify your configuration via "Paths and symbols" (like you
did), make sure the desired configuration is selected under C/C++
General -> Indexer / "Build configuration for the indexer."

Let me know if this works for you.

Regards,

Angel Roman
MDE Systems, Inc.

Sebastian Huber wrote:
> Hi,
> I set up a standard makefile project and want to use different
> configurations to build artifacts for different hardware boards in a
> cross-compiler environment. The build process works fine. Each
> configuration uses header files in the standard include paths provided
> by the cross-compiler (gcc) and header files in board specific include
> paths. I added the path settings to Project Properties->C/C++
> General->Paths and Symbols->Includes. The problem is now that if I
> switch the configuration the project->Includes in the Project Explorer
> won't be updated (= change of board specific include paths). This is bad
> since many things seem to rely on this e.g. automatic opening of include
> files from the file outline. Is there a way to update the
> project->Includes?
>
> Ciao,
> Sebastian Huber
Re: Includes per configuration [message #210015 is a reply to message #209961] Tue, 19 February 2008 10:18 Go to previous message
Eclipse UserFriend
Originally posted by: sebastian.huber.embedded-brains.de

Angel Roman wrote:
> Hi Sebastian,
>
> The "Includes" that show up in the C/C++ Projects view are controlled by
> the "Build configuration for indexer" setting under C/C++ General ->
> Indexer.

Oh, I haven't checked that tab. Thanks for this hint. I use now the
active build configuration for the indexer.

> After you modify your configuration via "Paths and symbols" (like you
> did), make sure the desired configuration is selected under C/C++
> General -> Indexer / "Build configuration for the indexer."

The paths in the project->Includes will be updated now if I clean and
build the project (or vice versa). A Index->Rebuild has no effect.

> Let me know if this works for you.
>
> Regards,
>
> Angel Roman
> MDE Systems, Inc.
>
> Sebastian Huber wrote:
>> Hi,
>> I set up a standard makefile project and want to use different
>> configurations to build artifacts for different hardware boards in a
>> cross-compiler environment. The build process works fine. Each
>> configuration uses header files in the standard include paths provided
>> by the cross-compiler (gcc) and header files in board specific include
>> paths. I added the path settings to Project Properties->C/C++
>> General->Paths and Symbols->Includes. The problem is now that if I
>> switch the configuration the project->Includes in the Project Explorer
>> won't be updated (= change of board specific include paths). This is bad
>> since many things seem to rely on this e.g. automatic opening of include
>> files from the file outline. Is there a way to update the
>> project->Includes?
>>
>> Ciao,
>> Sebastian Huber
Previous Topic:How to hook into CDT toolchain conversion/update process.
Next Topic:Project Template Engine + Restore defaults button.
Goto Forum:
  


Current Time: Sun Jun 08 14:48:22 EDT 2025

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

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

Back to the top