Author Topic: Running two projects at once  (Read 7903 times)

Harrris

  • Guest
Running two projects at once
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Running two projects at once
« Reply #1 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".

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Running two projects at once
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ