Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » "Build All" (CTRL+B or Toolbar button) does not build all configurations
"Build All" (CTRL+B or Toolbar button) does not build all configurations [message #771130] Mon, 26 December 2011 12:01 Go to next message
Felix T is currently offline Felix TFriend
Messages: 4
Registered: December 2011
Junior Member
Dear all,

I have a project in Eclipse CDT (Indigo SR1) on Linux 64 and it uses the "External builder" and "Generate Makefiles automatically" options.

I defined 4 build configurations (2 for Debug and 2 for Release).

Building each configuration separately works well.

However, the "Build All" shortcut or toolbar button or menu option does not build ALL configurations, but only one of them (namely, I think, the active configuration / the last one to have been built).

This is somewhat cumbersome, as I would like to test the proper build of all configurations.

Do you have any ideas why this happens?

Thank you.
Re: "Build All" (CTRL+B or Toolbar button) does not build all configurations [message #771196 is a reply to message #771130] Mon, 26 December 2011 16:22 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
tried Project -> Clean... ?

Re: "Build All" (CTRL+B or Toolbar button) does not build all configurations [message #771303 is a reply to message #771196] Mon, 26 December 2011 23:11 Go to previous messageGo to next message
Felix T is currently offline Felix TFriend
Messages: 4
Registered: December 2011
Junior Member
Did try. Even deleted all the build folders and pressed again CTRL+B. Still, just one configuration is built.

More, the build log logs only one configuration as being built.
Re: "Build All" (CTRL+B or Toolbar button) does not build all configurations [message #771307 is a reply to message #771303] Mon, 26 December 2011 23:26 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 12/26/2011 05:11 PM, Felix T wrote:
> Did try. Even deleted all the build folders and pressed again CTRL+B.
> Still, just one configuration is built.
>
> More, the build log logs only one configuration as being built.
You are mistaken about what Build All does. It builds all projects in
the Workspace. It doesn't build all configurations. It only builds the
active configuration for each project.
Re: "Build All" (CTRL+B or Toolbar button) does not build all configurations [message #771446 is a reply to message #771307] Tue, 27 December 2011 09:22 Go to previous messageGo to next message
Felix T is currently offline Felix TFriend
Messages: 4
Registered: December 2011
Junior Member
Thank you, "Missing Name" (?)

I solved the problem. I am not confused about what Build All does, as I used it previously to build all configurations in my project.

Actually, you have the choice:

Windows->Preferences->C/C++->Build->Build Scope->"Commands Build Projects, Build All, Build Working Set"

and pick either:

"Build active configuration in each active project" (for the behaviour that you state)

or

"Build all configurations in each project" (the behaviour that I've been expected)

On my Eclipse, it was the first option that was activated, I simply choose the second.

If anybody knows how to mark this thread as "Solved", please do it.

Thank you everybody.
Re: "Build All" (CTRL+B or Toolbar button) does not build all configuratio [message #771575 is a reply to message #771446] Tue, 27 December 2011 16:58 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 12/27/2011 03:22 AM, Felix T wrote:
> Thank you, "Missing Name" (?)
>
> I solved the problem. I am not confused about what Build All does, as I
> used it previously to build all configurations in my project.
>
> Actually, you have the choice:
>
> Windows->Preferences->C/C++->Build->Build Scope->"Commands Build
> Projects, Build All, Build Working Set"
>
> and pick either:
>
> "Build active configuration in each active project" (for the behaviour
> that you state)
>
> or
>
> "Build all configurations in each project" (the behaviour that I've been
> expected)
>
> On my Eclipse, it was the first option that was activated, I simply
> choose the second.
>
> If anybody knows how to mark this thread as "Solved", please do it.
>
> Thank you everybody.
>

Thanks for the additional information. I wasn't aware of the additional
behavior.
Previous Topic:liblto_plugin.so not found during compilation
Next Topic:simple c++ cheat sheet fails with c++ project wizard java.lang.NullPointerException
Goto Forum:
  


Current Time: Fri Apr 26 11:06:40 GMT 2024

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

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

Back to the top