Hiding the console window with Code::Blocks

From Allegro Wiki
Jump to: navigation, search

When you create a "New Project", Code::Blocks, by default set it as a console project, that means that automatically will link a console to your project. This is very good because the console is great for debbuging, but once you're ready to release your game/application you don't need it anymore, so here are the simple steps to build your software without the console.

alt text

To get this menu, press the "project option" button, then press the "Build targets" tab and inside of the "Selected build target options" make sure that the "Type" option is set to "GUI application" instead of "Console application". As you can see in the "build targets" section there is only the release mode, that's because I never use the debug mode, but you should select to which type of build you want to hide the console.

Normally a debug mode should always have a console, while a release mode shouldn't, but it's not a rule.