- Download "codeblocks-xx.xxmingw-setup.exe" from codeblocks.org (the file with "mingw" includes the GCC compiler).
- Run the setup → Next → I Agree → Full installation → Install.
- Open Code::Blocks → File → New → Empty file. Save it as hello.c.
- Type the program below and press F9 (Build and run).
- A black console window shows the output.
Output
Hello, I have installed Code::Blocks!
#include <stdio.h>
int main()
{
printf("Hello, I have installed Code::Blocks!\n");
return 0;
}