Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Harrris on July 09, 2008, 01:32:09 am

Title: Running two projects at once
Post by: Harrris on July 09, 2008, 01:32:09 am
Can I run two projects at the same time ? I mean, to activate more than one project at the same time. if you right-click on one project in the "projects" windows and select "activate", that project becomes active and the previously active project becomes inactive.

What I want is to set more than one projects to active. For example, if I have two projects in the workspace, when I press  F9 (Or select Build -> Run from the menu), to get two console windows (one for each project/executable) instead of having only the one active project running.

Cheers
Title: Re: Running two projects at once
Post by: Jenna on July 09, 2008, 07:25:33 am
That does not work afaik.
What you can do is run two instances of C::B at the same time. What might be useful if you want to debug two programs that interact with each other (client and server for example).

 To make this work you have to uncheck "Settings -> Environment -> Allow only one running instance".
Title: Re: Running two projects at once
Post by: MortenMacFly on July 09, 2008, 07:53:26 am
You can also use the tools menu and the macros provided to a tools entry to achieve this. E.g. setup a tool that runs the currently active target's output file detached. This is a generic entry in the menu and will work for every target.