

Type “g++ –version” in command prompt to check whether C++ compiler is installed in your machine. But, we are good if C compiler is installed successfully in our machine as of now.ĩ. Type “gcc –version” in command prompt to check whether C compiler is installed in your machine. Open command prompt (Type “cmd” in search box).Ĩ. You will get a popup window as shown below.Ĭhange the System variable as given below.ħ. Then, click on “Environment Variables” button and then “New”. Once installation is completed, go to your desktop and right click on My Computer -> properties -> advanced system settings -> advanced tab. If you want to install C++ compiler, you can follow this step. The below step is for C++ Compiler installation.Please choose all the GNU C Compiler listed in below window. Then, Click on Installation ->Apply Changes. Click on “All Package”, and then choose the C compiler as shown below. Shortcut may be available in your desktop.Ĥ. Once download is completed, double click on exe file. Download the latest version (Check the line “Looking for the latest version? “ Download mingw-get-setup.exe (86.5 kB)”) and click on this link.ģ.

We have to use window’s command prompt to compile and execute C and C++ programs.Ģ.It is not an IDE ( Integrated Development Environment ) such as Turbo C++, Borland C++ and Dev C++ GCC (GNU Compiler Collection) is a compiler used to compile both C and C++ programs.In this chapter, we are going to learn how to setup C development environment using GCC compiler in your machine and how to compile and execute a C program by your own. Get more detail about structure in C programming.
