How to install GCC C/C++ Compiler on windows 10 ?

In this article, we will learn that how to install GCC on windows 10. Download and install GCC on windows 10. GCC is the compiler for C/C++ Programming Language.

This post is about how to install GCC in windows 10 ?

Visual Studio Express and the system GCC compiler included in several modern Linux distributions still lack many modern C++ features.

One such function is generic lambdas, also known as polymorphic lambdas.

However, this function is included in the most recent versions of GCC and Clang.

The instructions below will take you through downloading the most current version of GCC on Windows, allowing you to play with generic lambdas and other cutting-edge C++ features.

You’ll have to compile GCC from the source, but that shouldn’t be a concern.

Below I’m gonna show you how to install GCC on windows 10 and start C/C++ coding ?

These topics we will cover in this article :–
  • What is compiler ?
  • What is MinGW and GCC ?
  • How to Download and install install gcc on windows 10 .
  • Verify the installation.

What is compiler ?

A compiler is a computer program  that transforms code written in one programming language into code written in another.

The term “compiler” refers to programs that convert source code from a high-level programming language to a lower-level programming language to produce an executable program.

  • Compiler is a program that processes a statement written in particular programming language.
  • A computer is not take source code directly. So ,a compiler takes our written code and covert into Machine code that a computer’s system process.
  • Example : MinGW GCC Compiler for C/C++ , Java JDK for Java.
  • There are three types of compilers :- 1.Single Pass Compiler , 2. Two Pass Complier and 3. Multi pass Compiler

What is MinGW and GCC ?

MinGW (formerly mingw32) is a free and open-source software development environment for creating Microsoft Windows applications. With the launch of the Mingw-w64 project in 2005–2008, the progress of the MinGW project was split in two.

MinGW provides a Windows native build of the GNU Compiler Collection (GCC), GNU Binutils for Windows (assembler, linker, archive manager), a series of freely distributable Windows-related header files and static import libraries that allow the use of the Windows API, and miscellaneous utilities.

MinGW does not depend on a third-party dynamic-link library (DL) for C runtime.

Since the runtime libraries are not distributed under the GNU General Public License (GPL).

It is not mandatory to share the source code for the program generated unless a GPL library is included elsewhere in the software.

MinGW can run natively on Microsoft Windows, cross-hosted on Linux (or other Unix), or “cross-natively” on Cygwin.

Despite the fact that MinGW programs are 32-bit executables, they can be found in both 32-bit and 64-bit models of Windows.

  • MinGW stands for Minimal GNU for Windows.
  • MinGW contains GCC which in the collection of GNU free Software.
  • It is a GCC-based compiler that compiles and connects windows code.
  • Uses the Microsoft runtime libraries.
  • distributed with the Windows operating system also.
  • GCC stands for GNU Compiler Collections also.
  • Used to compile C and C++ language also.
  • GCC can compile any C or CPP files but they’ll be considered C and C++, respectively.
  • Any .C or .CPP files can be compiled with g++ , but they will only be handled as C++ files.

How to Download and How to install gcc on windows 10 ?

MinGW-w64 is a fork of MinGW that is designed to run on 64-bit Windows (as well as 32-bit windows). http://mingw-w64.org/doku.php is the mother port.

GNU is a source of open source programming software, and MinGW stands for Minimalist GNU for Windows (GNU stands for GNU is Not Unix).

In this handout, you’ll get the files you’ll need for GNU C++, and in the next, you’ll get a version of Eclipse that’s already configured to work with MinGW.

Before you started, you might want to print these instructions so that you can refer to them when downloading and installing MinGW.

Alternatively, you should simply bookmark this page in your browser. Until executing the action mentioned in – step, make sure you read it absolutely.

How to download GCC :–

Let’s see how to download GCC on windows 10 ?

  • To Download MinGW Click here. Following Screen appear after open this link in new tab.
  • Click on ‘mingw-get-setup.exe(86.5 kb)’ . This is MinGW installer setup.
  • Following Screen appear the file will starting automatically download in standard download folder. It will download quickly.
  • Go into your downloads folder and run the .exe file.
  • popup appear on screen. Click on yes.
  • Following window appear on screen.
  • Click on Install to install gcc on windows 10.
  • Install on default directory or change if you want to change. Click Continue.
  • Download is in process. MinGW is downloading required files.
  • Click Continue download is completed.
  • Following window will appear after download is complete . check on mingw32-base , mingw32-gcc-g++ and msys-base.
  • After click on checkbox click on installation and click on Apply.
  • Following window will appear. Download is started. This is final installation.
  • Than close the window and go in the installation directory C:\MinGW .
  • Go into bin folder. click on address bar and copy the path C:\MinGW\bin.
  • Go to System properties.
  • Than go to Advanced system settings.
  • Click on Environment variables to go into path setttings.
  • Press click on Path and than click on Edit to add GCC to path.
  • Click on New to create new path .
  • Paste the path copy you and click ok. Now everything is ok. MinGW is successfully install and add to path. Now you also verify that MinGW is working or not.

Verify the installation :–

Now everything is ok. Now You can also verify that the MinGW was successfully installed on your computer.

  • Open cmd and type command gcc. The following window will appear after this command.
  • You should get output : gcc: no input files. it means that the gcc successfully installed in your computer. If you get other output try again this process and verify again also.
  • Download any code editor or IDE and lets start coding also.

FAQ

What is compiler ?

The term “compiler” refers to programs that convert source code from a high-level programming language to a lower-level programming language in order to produce an executable program.

What is MinGW and GCC ?

MinGW (formerly mingw32) is a free and open-source software development environment for creating Microsoft Windows applications.

MinGW provides a Windows native build of the GNU Compiler Collection (GCC), GNU Binutils for Windows (assembler, linker, archive manager), a series of freely distributable Windows-related header files and static import libraries that allow the use of the Windows API, and miscellaneous utilities.

How to Download and How to install gcc on windows 10 ?

  • To Download MinGW Click here.
  • Go into your downloads folder and run the .exe file.
  • Click on Install to install gcc on windows 10.
  • Download is in process.
  • Following window will appear after download is complete . check on mingw32-base , mingw32-gcc-g++ and msys-base.
  • After click on checkbox click on installation and click on Apply.
  • Than close the window and go in the installation directory C:\MinGW .
  • Go into bin folder. click on address bar and copy the path C:\MinGW\bin.
  • Go to System properties > Advanced System Settings > Environment Variables > Path > New.
  • Copy and paste Path you copied.
  • Now you successfully installed gcc on windows 10.

How to verify that GCC Compiler is installed on windows ?

  • Open cmd and type command gcc. The following window will appear after this command.
  • You should get output : gcc: no input files. it means that the gcc successfully installed in your computer. If you get other output try again this process and verify again also.
  • Download any code editor or IDE and lets start coding also.

Conclusion

We are successfully installed GCC on windows 10 computers. If you are fetching any problem with this method, you can also share your problem’s in the comment section. We will try to help you.

Thank you for visiting our website and reading this blog post ” install GCC on windows 10 “. We hope that this post was very helpful for you. If you think this post was helpful for you, please share it.

Give us your feedback in the comments. Continue to visit our website to get daily more helpful posts. Thank you once again.

For more helpful posts and updates please keep visiting our website also.

Also read:-

Summary
Article Name
How to install GCC C/C++ Compiler on Windows 10 ?
Description
In this article we will learn that how to install GCC on windows 10. Download and install GCC on windows 10. GCC is compiler for C/C++ Programming Language.
Author
yuvraj
Publisher Name
pcbloggers.com
Publisher Logo
Yuvraj:

View Comments (1)

This website uses cookies.