Release and Debug builds [message #1704199] |
Sat, 08 August 2015 12:27  |
Eclipse User |
|
|
|
[LInux]
I noticed that when I first start to create a project in Eclipse that it shows a small dialog box with to options checked, release & debug, and I make sure they are both checked. But when I would do a build it would do both executables debug (with debugging symbols) and release (without debugging symbols). I had to find a second options and I don't remember if it was in Properties or Preferences because I can't seem to find that option again.
So what's the difference between the dialog box that shows up with both debug and release checked when you first start a project and the option that I found in properties or preferences for building both?
Also, I can't find that option again in properties or preferences and also for whatever reason the dialog box with debug and release options has stopped coming up when I create a project. Any ideas? Thanks.
One last thing. Is there a way to keep a group of projects under one tree in the Project Explorer? When I'm going through one, or several programming books at a time I don't want to stack 200 projects on top of each other in the project explorer. If I'm going through a particular programming book I'd like to keep all of it's projects in their own tree. Thanks again.
|
|
|
Re: Release and Debug builds [message #1704229 is a reply to message #1704199] |
Sun, 09 August 2015 06:25  |
Eclipse User |
|
|
|
Garrett Gaston wrote on Sat, 08 August 2015 12:27[LInux]
I noticed that when I first start to create a project in Eclipse that it shows a small dialog box with to options checked, release & debug, and I make sure they are both checked. But when I would do a build it would do both executables debug (with debugging symbols) and release (without debugging symbols). I had to find a second options and I don't remember if it was in Properties or Preferences because I can't seem to find that option again.
So what's the difference between the dialog box that shows up with both debug and release checked when you first start a project and the option that I found in properties or preferences for building both?
Also, I can't find that option again in properties or preferences and also for whatever reason the dialog box with debug and release options has stopped coming up when I create a project. Any ideas? Thanks.
When you create a new C++ project for an executable or a library, it always give you the option to edit the build configurations on the 2nd or 3rd window of the wizard.
If you don't set it, you don't enable that specific configuation and it won't be built.
To build only a single configuration at time, you should firstly set it through Project -> Build configurations -> Set active, and afterwards click on Projects -> Build project.
I suspect the behaviour you are noticing occurs when you perform "Build all".
Once a project is created, you can edit the configurations from Project properties -> C++ Build -> Manage configurations, it is a button on the right of the current configuration being selected.
Quote:One last thing. Is there a way to keep a group of projects under one tree in the Project Explorer? When I'm going through one, or several programming books at a time I don't want to stack 200 projects on top of each other in the project explorer. If I'm going through a particular programming book I'd like to keep all of it's projects in their own tree. Thanks again.
As you've already noticed, one way would be to organise them on working sets. This is what I am currently using right now, and personally I'm finding quite confusing to handle.
However I've seen several people that just create a new workspace to organise a different set of related projects. You can switch a workspace from File -> Switch to workspace. Then if you want to check two projects in two different workspaces, you need to have two separate instances of Eclipse running, as far as I've understood.
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds