GCC, abbreviation for 'GNU Compiler Collection' (thanks @saphirakai) (and not Gulf Cooperation Council, like I'd assumed) is a necessity if you (or...
For further actions, you may consider blocking this person and/or reporting abuse
or just do
choco install mingw
Thanks, that just saved me a lot of time lol!!!!
I didn't know it was possible, nobody writes about it...
self #smh #facepalm
Amazing (:
GCC is not an acronym for GNU C Compiler, that's a misconception. It stands for GNU Compiler Collection, as GCC has support for many languages; including C++, Objective-C, Objective-C++, Fortran, Ada, D, and Go, not just C.
Good Catch buddy (:
Thanks for sharing this article. It has great info. After reading this I also found a great article on using Visual Studio Code on Win10 and mingw -- code.visualstudio.com/docs/languag.... It includes links directly to the installation of MinGW so that is helpful too.
The mingw.org site is down (as noted above). However, the older SourceForge site has a stale copy. The new site is osdn.net/projects/mingw/
OP, please update the link above in the article to the new site.
To install the GNU Compiler Collection (GCC) on Windows 10, you can use the MSYS2 environment, which provides a Unix-like shell and a package management system for Windows. Here's a step-by-step guide:
Install MSYS2:
Download the MSYS2 installer from the official website.
Run the installer and follow the on-screen instructions.
When prompted, choose the installation directory (the default is usually fine).
Update MSYS2:
Open the MSYS2 Shell that was installed with the MSYS2 package.
Run the following commands to update the package database and core system packages:
pacman -S mingw-w64-x86_64-toolchain
This may take some time as it updates the system.
Install GCC:
After the update, install the GCC package using the following command:
pacman -S mingw-w64-x86_64-toolchain
This will install the GCC compiler and related tools.
Add GCC to the System Path:
Once the installation is complete, you need to add the GCC binaries to the system path so that you can run them from any command prompt.
Locate the installation directory (default is C:\msys64).
Add the bin directory to the system path. You can do this by adding the following line to your system or user environment variables:
C:\msys64\mingw64\bin
Make sure to adjust the path if you installed MSYS2 in a different directory.
Verify Installation:
Open a new command prompt and type the following command to verify that GCC is installed:
bash
Copy code
gcc --version
You should see information about the GCC version.
That's it! You have successfully installed GCC on Windows 10 using MSYS2. You can now use GCC to compile C and C++ programs from the command line.
Hi...your (revised) article worked to perfection, thanks! (Installed gcc on 2021-05-03 on Win 10).
For me, gcc is only 80% of the bits I need ...
I also need: make
and: /usr/include/* (e.g., , )
I know I've found/installed them three or four times over the last 20+ years,
but each time it's a new challenge (hmmm...maybe better note keeping?)
thanks!
Stan
I got an error for compiling CGO. Fixed with TDM.
THANK YOU!
You are perfect
How do i install pacman on it??
thank you
Thank you, you helped me a lot.
It was useful to me.
Thanks.
I created an account just to thank you for saving me the headache.
You are a God!!! This article saved my day! Thank you very much!
THANK YOU SO MUCH! I literally just made an account so I can say that to you. Seriously, you just saved me from a massive headache!
Thank you for this useful article. I followed it but it installed version 6.3.0 for me, while I need version > 8 or the latest version. Could you please show how to to it? Thanks!
Thanks man, this approach killed it. Working perfectly on my PC right now.
Please suggest as mingw site is not working
try mingw-w64.org/doku.php. Seems that the mingw site's domain has expired.
Thank you very much.
Thank you, still working until now. ❤️
Anyone else enjoys fishing here? Wanted to ask some questions if any professionals are available.
paperminecraft.us
flyordieio.com
Just a small correction.
MinGW official site never went down; it got moved to osdn.net/projects/mingw/
Thank you so much
Thank you so much!
Why is education so expensive in the USA? This is actually a huge problem, a student with a loan of 50k and above in awful thing.
really helpful thanks
can someone tell me how to delete it?
Thanks bro that was super helpful :)
it worked very well, thank you very much