How to install C Compiler


If you want to learn C programming, first you have to install C compilers in your computer or in mobile, which help to compile and execute the C program.

Those who are new in the field of computer programming do not know where to write the C program and where to see its output? In this post, we will tell you the names of compilers, which you can install in your computer and compile the C program.

Some people also have the question that can we write C program in mobile too? Yes, you can write C program in your mobile too, for this you will have to install C Compilers apps like C4droid on your mobile. This tutorial is written on the base of the Windows operating system, meaning that all the programs written in this tutorial have been compiled in the Windows operating system.

 Compiler Name:

There are many compilers available for compiling C program such as Turbo C ++, Turbo C2, GCC Compiler. But most of the code block IDE is used. You will get the code block IDE in all the colleges or in most institute because it is very easy to write programs in it and can execute both C and C ++ programs in it.

How to download and install the code block?

If you do not have the software of Code Block available, then you can download it. Follow the steps to download and install.

Step 1: First click on this link and download the Code Block IDE. It's absolutely free| (Click here to download)

Step 2: You will see code block of many version from which you can download the latest version.

Step 3: After downloading the code block, double click on the exe file and install it.

Installation Step:

Step 1: First of all install it by double clicking on the .exe file of the Code block. Next >> I Agree

Step 2: Now you will have a box of Choose components open in front of which you will have to choose the components. If all the components are already selected, click on Next and if all components are not selected,
first select all the components and then click on Next.

 How to install C Compiler

All option selected

Step 3: Now you will be asked to select the destination folder which means that in which drive you want to install it, select it. This in the Program Files of Bydefault C drive is installed
 How to install C Compiler

Select Destination

Step 4: Now the installation process will start. When the installation is complete, then click on Finish after that.

Installing Start

Now the code block will start which you can compile by writing your program.

Environment Error in Code block

Sometimes you will have a message show in which you will be told that there is an environment error in your system i.e. if there is no GCC Compiler, then you will have to do some setting for it. Let us see the setting.

Step 1: First open the code block. Then click on the Setting menu from the menu.

Step 2: Now after that select the Compiler option.

Step 3: Now a pop up box will open in which first select GNU GCC    Compiler.

After that click in the Toolchain Executables tab and then select the compiler installation directory and then click on Ok at the end.Select Destination


Installing Start

How to install C Compiler
GNU GCC Compiler Environment error

Compiler Installation Directory:
 
(C: \Program Files(x86)\CodeBlocks\MinGW \ Bin)

You can also watch the video tutorial given below for this but in this video the bin folder is not selected, if you select only till MinGW and still does not work, then select the path to the bin folder.

Post a Comment

Please do not any spam link in the comment

Previous Post Next Post