Installing the C/C++ (GCC) Compiler Windows

TLDR; In this blog post we are going to install GCC compiler in windows platform. If you just wanted to skip all the step and do it yourself here is the link GCC TDM

In this Tutorial, we are going to look into the full process of installing one of the C or C++ compiler as GCC compiler to your Windows machine.

Compiler

Compiler is software which is used to Compile or convert a piece of code/programs into machine-readable code. In programming world all programming language needs to have a compiler, either it is C or Python. For Python process is easy because it comes with interpreter not compiler, though compile is inbuilt in interpreter.

GCC Compiler

It is an open source compiler which is free of cost. A good thing about the tdm-gcc is that it automatically sets up the path variables, we need not worry about the path variables anymore.

Download

In order to install the GCC software, you have to first Download it from the internet.
You can also download this software from their Website by clicking here.

You will see a page like this. Pick version suitable for your machine. Mine is x64 so I picked 64 bit.

first image

Now go to the Download directory of your machine and search for the program and double-click it to open and run.

Installing

This is the first welcome screen.

wizard

click on the Create like this 

create

Now select the type of installation as x86 or x64, and click next

next

Now click next to accept their Privacy policy.

next2

Now browse for the directory where you want to install the program this directory can be anything inside your C drive or D drive. Click Install

browse

That’s it this compiler is installed.

A good thing about the tdm-gcc is that it automatically setup the Path variables so that we can run the programs from anywhere.

A sample run of a program is

test

Guys if you liked this post please help us and share this post among your friends.

Thanks for being here.

Keep Coding Bye