< Prev
Next >



How to configure MinGW GCC C Compiler




Let's see how to configure and set up environment variables for MinGW GCC C Compiler in a Windows Operating System in order to run our first C program.

In our case, we have installed MinGW in its default directory C:\MinGW, hence the path of our bin folder in JDK is C:\MinGW\bin


Figure 1



Next, in the search box of the Windows Operating System(Windows 7 to Windows 10), type in windows command sysdm.cpl and press Enter to open the window of System Properties.

Figure 2



The next window of System properties open up, we need to click on its tab Advanced.

Figure 3



In this tab Advanced, we need to click on the Environment Variables , in order to set the environment variables for executing Java programs.

Figure 4



In the next window of Environment Variables, we need to click on Path variable in the section of System variables and then click on Edit button to edit the value of this Path System variable.

Figure 5



Figure 6



Next, click the OK button on the previous window of Environment Variables .

Figure 7



Next, in the search box of the Windows Operating System(Windows 7 to Windows 10), type in the windows command cmd and press Enter to open the a windows Command Prompt.

Figure 8
.


In the Command Prompt window, we will check whether MinGW GCC C Compiler is successfully installed and running in our system. To do this, we type a command gcc --version which calls the MinGW GCC C Compiler and press Enter and voilĂ ! MinGW GCC C Compiler responds and we are shown its installed version on our system.

Figure 9
.
This concludes a successful setup of the environment variables of MinGW GCC C Compiler to compiler and execute our C programs. Next in, executing our first C program.


Please share this article -

Facebook Google Pinterest Reddit Tumblr Twitter




< Prev
Next >
< Download MinGW GCC C Compiler
The First C Program >
Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2