News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Running two projects at once

Started by Harrris, July 09, 2008, 01:32:09 AM

Previous topic - Next topic

Harrris

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

Jenna

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".

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]