In CodeBlocks,how do I run a certain program if multiple project files are open?

Jun 30, 2015 at 2:34am
When i have multiples files (not project files) opened in the view window,if i click on a file and open it and then if i click run, that program builds and runs fine.
But when i have multiple project files,this doesn't happen .
If i have multiple projects opened,then the last project file with main() always gets called each time i press build and run,no matter which file is open in the view window at the moment.
How to run one single file from all these files?
Jun 30, 2015 at 4:09am
Right click on the program you want to compile and "activate" the project, then compile that program. Any time you want to switch to another program activate that other program.
Jun 30, 2015 at 8:14am
Wow!Didn't see that.
Thanks a lot :-)
Topic archived. No new replies allowed.