banner



How To Install Gnu Compiler

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 Collection' (thanks @saphirakai ) (and not Gulf Cooperation Council, similar I'd assumed) is a necessity if you (or your pesky college) is into C Programming.

Almost all Linux distros come up pre-installed with it so they are out of the trouble. But for those of you 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 bluish and a tough nut to install. one thousand rage-quits later, I present you this article.

This article is written so that the installation procedure is fabricated easier than most of the trashy articles I had to get through.

Installation

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

MinGW Installation Manager

  1. Now you gotta edit your "Environment Variables" also, then that gcc works in cmd no matter the file location.
  2. For that go to Windows Explorer > Correct click on This PC > Properties > Advanced organization settings > Environment Variables or you could but search for "Environment Variables" in Windows Search...
  3. At the bottom "System Variables" console, look for a Variable named "Path" and double click on it. Some systems show a good UI for calculation a New Path easily (past clicking New), else you but need to add ; at the terminate and add the post-obit path

                    C:\MinGW\bin                              
    (This is assuming yous didn't manually change any installation paths and went with merely clicking 'Next' during installation)
  4. Click on OK, and OK and close the other windows. Open up a Control Prompt Concluding and endeavour typing gcc --version and press Enter.

    If you become something like

                    gcc (MinGW.org GCC Build-2) 9.ii.0 Copyright (C) 2022 Gratis Software Foundation, Inc. This is free software; see the source for copying weather condition.  At that place is NO warranty; not fifty-fifty for MERCHANTABILITY or FITNESS FOR A Item 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: thorntonbeeal1986.blogspot.com

0 Response to "How To Install Gnu Compiler"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel