DOWNLOAD
AND
INSTALLATION
OF
CODE::BLOCKS
NAZIRUL HASAN
LECTURER, CSE, KUET
Download
• Go to the following site:
[Link]
8/19/2025 2
Download
• Click on “Download the binary release”
8/19/2025 3
Download
• At this point the package to be downloaded
must be selected.
8/19/2025
Scroll down to your computer platform. 4
Download
Select One
Select the Installation Package
8/19/2025 5
Installation
Go to the directory where you have saved the file and
double click on the codeblocks-20.03mingw-setup file.
8/19/2025 6
Installation
Click on “Next”.
8/19/2025 7
Installation
Review the license agreement and Click on “I Agree”.
8/19/2025 8
Installation
Click on “Next”.
8/19/2025 9
Installation
Take a note on this path
Click on “Install”.
8/19/2025 10
Installation
Installation going on......
8/19/2025 11
Installation
Click on “Finish”.
8/19/2025 12
Setting Up Path to Environment
Variable
Double click on “Local Disk (C:)”.
8/19/2025 13
Setting Up Path to Environment
Variable
Double click on “Program Files”.
8/19/2025 14
Setting Up Path to Environment
Variable
Double click on “CodeBlocks”.
8/19/2025 15
Setting Up Path to Environment
Variable
Double click on “MinGW”.
8/19/2025 16
Setting Up Path to Environment
Variable
Double click on “bin”.
8/19/2025 17
Setting Up Path to Environment
Variable
Copy this path from location bar.
8/19/2025 18
Setting Up Path to Environment
Variable
Go to search bar and search for “Environment Variables”.
8/19/2025 19
Setting Up Path to Environment
Variable
Under the “Advanced” tab click on “Environment Variables”.
8/19/2025 20
Setting Up Path to Environment
Variable
In System variables, scroll down a little bit and double click
on Path.
8/19/2025 21
Setting Up Path to Environment
Variable
Click on “New”.
8/19/2025 22
Setting Up Path to Environment
Variable
Paste the path here.
8/19/2025 23
Setting Up Path to Environment
Variable
Now click on “OK” for the rest of the windows.
8/19/2025 24
Setting Up Path to Environment
Variable
Go to command prompt and type “gcc --version”. If it
shows the version, then you are ready to go.
8/19/2025 25
After the IDE has been installed
1. Open the Code::Blocks IDE
2. Click on Create a new project
3. Double click on “Console application” → Click “Next”
4. Type in a Project title. Something like “temp” and click on “Next”
8/19/2025 26
After the IDE has been installed
5. The left window will display the project structure. Double click on
“Sources” and once again on “main.c”.
You are now at the edit screen for the programming project. This is where
we spend most of our time.
8/19/2025 27
Happy Coding!
8/19/2025 28