Setup codeblocks with compiler and run a program | screenshots and video
Video tutorial
The Complete Tutorial With Screenshots and Instructions Is Here !
direct download link for codeblocks (windows)
Download and Install,
COMPILER SETUP
You need a GCC compiler to build/compile and Run a program
Download compiler from the given link
Install and Run The SetUp
Clickn on 'Create'
Select 32/64 bit , according to your pc
Run setup (around 200- 350 mb data is needed to download the files for compiler to install)
You can give a path where you want the files to be kept after installation ! Do remember the folder path. After the setup complete, Go to folder where Compiler is installed ! You will see a subfolder named 'bin' into the folder 'TDM GCC'
We will set up the .exe files from the 'bin' folder in Codeblocks, so don't modify/touch any file from the TDM GCC folder
now
Go back to the Codeblocks , Go to setting > compiler > toolchain executables >
Select (define path of) the TDM GCC folder and click 'Auto Detect'
If It auto detects the files then You can go to make a program, otherwise you have to manually setup the files
If it doesn't auto detect, then
Manually Setup The Compiler Files
To start setting up manually, Click on the left corner of file ne box (see screenshot) and select the related name file from TDM GCC's 'bin' folder.
You have to select the files from C/tdmGcc/bin folder and you can setup it in two ways !
Either this one
Or , like this { do any }
If everything is done successfully, press OK, You won't get any error and you can go to
File > New > Emply File , Start Coding
When you'll click 'build and Run' (Green icon above)
Your program will be builed and Output will be shown in a new Run Window !
You have to ne the file with .cpp extension before using it or to run and see output
Where you will save ypur program, You will find a .exe file with the program's name in the folder where you saved .cpp file !!
If you click that .exe file anytime, you can access to your program's output directly !
You can Zoom in/ Zoom out the screen ,
The Codeblocks saves your work if suddenly pc shuts down !
You don't need to open Codeblocks if you directly access the .exe file of an already build program anytime to run your program which will be saved with the folder containing .cpp file.
Comment below for any query !
keep visiting www.ifbt.gq