Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: undostres2411 on May 12, 2016, 01:57:37 pm

Title: Is it possible to compile one file from the project but not the others?
Post by: undostres2411 on May 12, 2016, 01:57:37 pm
Hello! Quick question. Is it possible to run one file from the project but not the others?

(http://s32.postimg.org/hsmgtkkld/Captura.png)

For example, can I run only 2.cpp without running main.cpp?

Thanks in advance! ;)
Title: Re: Is it possible to compile one file from the project but not the others?
Post by: Jenna on May 12, 2016, 09:50:03 pm
Yes, right-click the file in the project-manager and chose "build file" or press "Ctrl-Shift+F9" if the file is active or chose "compile current file" from the "Build"-menu.