1. Download
Official website
MinGW-w64C/C++ compiler resource direct link:
2. Product introduction
There are a total of five versions that can be run on windows. Let’s talk about the differences of each version separately.
1-cygwin: Equivalent to the Linux compatibility layer of WindowsLinux installs gcc, an environment that can run most Linux software (not within the scope of discussion)
2-llvm: Another famous compiler clang under Unix system and Linux system (some features are not supported under windows, but it is not a gcc red flag linux download and is not recommended)
3-w6464devkit: Development tool suite including gcc (recommended, including busybox)
4-MingW-W64-builds: gcc tool (recommended)
5-Similar to 1
So there are actually only two options: 3 and 4. If you want to run some basic Linux commands (such as ls, mkdirlinux environment variables, touch, vim), choose 3, and for others, choose 4. Then click on the red part to download the offline installation package.
3. Installation
Open the installed mingw (the path you just selected) folder
Click this
Copy path
Paste into environment variables
Create a new environment variable and paste the path (I pasted it here before, the last line is it)
Click OK (there are multiple)
Test
Enter in cmd: g++-v
Command to see the version number.
4. Problems you may encounter: The downloaded file does not have a /bin folder, for example, it looks like this
It means you have downloaded the source code. Linux installation gcc. This is the source code file for cross-compilation.
The above is the detailed content of MinGW-w64 C/C++ compiler version introduction and download link. For more information, please follow other related articles on the PHP Chinese website!