banner



How To Install Gcc Compiler On Windows 10

Cover image for How to install gcc in Windows 10? (the easier way)

Sudev Suresh Sreedevi

GCC for Windows How to install gcc in Windows 10? (the easier way)

GCC, abbreviation for 'GNU Compiler Drove' (thank you @saphirakai ) (and non Gulf Cooperation Quango, similar I'd causeless) is a necessity if you (or your pesky college) is into C Programming.

Well-nigh all Linux distros come pre-installed with it and so they are out of the trouble. But for those of you lot who were constant users of Windows and Command Prompt, and never felt the necessity for a C compiler, GCC seems to come out of the blueish and a tough nut to install. chiliad rage-quits later, I nowadays yous this article.

This article is written and so that the installation procedure is made easier than most of the trashy manufactures I had to go through.

Installation

  1. Go to MinGW official website and click on 'Downloads' on the left panel. You'll exist redirected to the site which hosts the files. Of import Edit: MinGW official website is at present downwardly (every bit of 24th March 2022). Hence, instead of their official website, download from MinGW SourceForge folio
  2. Await for mingw-go-setup.exe for downloading. Download it and launch the installer. Accept the terms and move on.
  3. You'll now see that the installer is connecting to the Internet and downloading a lot of tiny and small files. Await till it ends.
  4. Right when it ends (which won't take long), you'll be presented a window with title MinGW Installation Manager. You should be in the 'Basic Setup' tab by default when information technology launches. If not, click on Basic Setup.
  5. Out of the numerous check boxes presented to you on the correct side, tick "mingw32-gcc-1000++-bin". If you lot are prompted with a menu, click on Marker for Install.
  6. Then on the top left corner click on Installation > Apply Changes. And wait while it downloads a billion files and installs them.

MinGW Installation Manager

  1. Now you gotta edit your "Environs Variables" also, so that gcc works in cmd no matter the file location.
  2. For that go to Windows Explorer > Right click on This PC > Properties > Advanced system settings > Environment Variables or you could simply search for "Environment Variables" in Windows Search...
  3. At the bottom "Organization Variables" panel, look for a Variable named "Path" and double click on it. Some systems show a good UI for adding a New Path easily (by clicking New), else you but need to add ; at the end and add together the following path

                    C:\MinGW\bin                              
    (This is bold you didn't manually change whatsoever installation paths and went with just clicking 'Next' during installation)
  4. Click on OK, and OK and close the other windows. Open up a Command Prompt Terminal and try typing gcc --version and printing Enter.

    If you get something like

                    gcc (MinGW.org GCC Build-2) nine.2.0 Copyright (C) 2022 Gratuitous Software Foundation, Inc. This is free software; see the source for copying weather.  There is NO warranty; non fifty-fifty for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                              

    gcc has been successfully installed in your PC. Enjoy!

Cheers and happy coding!

Source: https://dev.to/gamegods3/how-to-install-gcc-in-windows-10-the-easier-way-422j

Posted by: sheppardhitery1961.blogspot.com

0 Response to "How To Install Gcc Compiler On Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel