Install the TDM-GCC package into the directory c: mingw 64, selecting to install all components. Select not to add MinGW-w64 to the PATH. After the installer completes, use the Start menu, right-click on 'Computer', select 'Properties' then 'Advanced Systems Settings' then 'Advanced' tab, click button 'Environment variables'. But i found nowhere any kind of executables or installer, what do i do next? Note I already have the 32 bits version installed in c:MinGW, thank you very much for any help as i am getting really frustrated. Installing the 64-bit Version Once you've downloaded the installer, follow the steps below to install and configure the tools. Navigate to the folder that contains the MinGW-64 installer mingw-w64-install.exe. This will probably be your Downloads folder. Run the installer. The initial screen of the installer is shown.
MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.
Downloading MinGW
- open http://www.mingw.org/
- Click Download Button as shown in the picture below.
3. As soon as you click download button on mingw website The following page will open in your browser (from the SourceForge.net web site).
4. The following exe file will be downloaded with the name mingw-get-setup.exe
5. Click mingw-get-setup.exe
6. Click install
7. Click continue
8. Click continue
9. The following pop-up window will appear. Pleas make sure that you selected all the check-boxes. e.g. mingw32-base, mingw32-gcc=g++, msys-base and so on.
10. Click on Installation > Apply Changes as shown in the picture below.
11. wait for the process to complete. once you see successful installation message close the window. Click Close.
12. Now we will set environment variable to use gcc and g++ command from terminal.
Windows 10 and Windows 8
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the
PATH
environment variable and select it. Click Edit. If thePATH
environment variable does not exist, clickNew
.
- In the Edit System Variable (or New System Variable) window, specify the value of the
PATH
environment variable. - Copy C:MinGWbin .
- Click OK.
- Close all remaining windows by clicking OK.
- Reopen Command prompt window, and type
gcc
. if you see the following output as shown in the picture below the mingw is installed successfully.
Mingw W64 Offline
1、 What is mingw-w64?
The full name of MinGW is: minimalist GNU on windows. In fact, GCC, the classic open source c language compiler, is ported to the windows platform and contains the Win32 API, so the source code can be compiled into executable programs that can run in windows. In addition, you can also use some development tools under Linux platform that Windows does not have. In a word, MinGW is the Windows version of GCC.
The full name of MinGW is: minimalist GNU on windows. In fact, GCC, the classic open source c language compiler, is ported to the windows platform and contains the Win32 API, so the source code can be compiled into executable programs that can run in windows. In addition, you can also use some development tools under Linux platform that Windows does not have. In a word, MinGW is the Windows version of GCC.
The above is the introduction of MinGW. The difference between mingw-w64 and MinGW is that MinGW can only compile and generate 32-bit executable programs, while mingw-w64 can compile and generate 64 bit or 32-bit executable programs.
Because of this, MinGW has been replaced by mingw-w64, and MinGW has already stopped updating. The built-in GCC has stagnated at version 4.8.1, while the built-in GCC of mingw-w64 has been updated to version 6.2.0.
Because of this, MinGW has been replaced by mingw-w64, and MinGW has already stopped updating. The built-in GCC has stagnated at version 4.8.1, while the built-in GCC of mingw-w64 has been updated to version 6.2.0.
2、 Why use mingw-w64?
1. Mingw-w64 is open source software, which can be used free of charge.
2. Mingw-w64 is maintained by an active open source community, so it will not be out of date.
3. Mingw-w64 supports the latest C language standard.
4. Mingw-w64 uses the C language runtime library of windows, so the compiled program does not need a third-party DLL, and can run directly under windows.
5. Those famous open-source ides only encapsulate the mingw-w64, making it have a friendly graphical interface and simplify the operation, but the internal core is still mingw-w64.
1. Mingw-w64 is open source software, which can be used free of charge.
2. Mingw-w64 is maintained by an active open source community, so it will not be out of date.
3. Mingw-w64 supports the latest C language standard.
4. Mingw-w64 uses the C language runtime library of windows, so the compiled program does not need a third-party DLL, and can run directly under windows.
5. Those famous open-source ides only encapsulate the mingw-w64, making it have a friendly graphical interface and simplify the operation, but the internal core is still mingw-w64.
Mingw-w64 is a stable, reliable and continuously updated C / C + + compiler, which can save you a lot of trouble, don’t worry about not keeping up with the times, don’t worry about the compiler itself has bugs, and you can write programs at ease.
3、 What is mingw-w64 suitable for?
For those familiar with mingw-w64, it can compile any C program. But for the average person, the mingw-w64 is too simple to have a graphical user interface. This makes people who are used to using the mouse feel very painful. Although there are some configurations that allow the mingw-w64 to have a graphical user interface, that process is cumbersome.
For those familiar with mingw-w64, it can compile any C program. But for the average person, the mingw-w64 is too simple to have a graphical user interface. This makes people who are used to using the mouse feel very painful. Although there are some configurations that allow the mingw-w64 to have a graphical user interface, that process is cumbersome.
In addition, when compiling complex programs, you need to be able to write makefiles. Otherwise, you can only compile one file for one file. You can imagine how hard it will be.
But for beginners of C language, mingw-w64 is the right compiler. At least the black command prompt interface has a programming atmosphere and feels cool.
But for beginners of C language, mingw-w64 is the right compiler. At least the black command prompt interface has a programming atmosphere and feels cool.
At the beginning of learning C language, all the code is usually written in one file. As long as you enter a few simple commands, you can use mingw-w64 to compile into an executable file. Although compilers such as vs2015 can be compiled by clicking the mouse, they will automatically generate a large number of engineering files, leaving beginners confused. Mingw-w64 generates only one executable.
If we describe the compilers such as mingw-w64 and vs2015, then mingw-w64 is manual, while the compilers such as vs2015 are automatic. Therefore, the compilation process of mingw-w64 is more intuitive and easy to understand, and it is also more suitable for C language learning.
All in all, for ordinary people, mingw-w64 is suitable for learning C language, and vs2015 is better for real work. Of course, if you are working under Linux, code:: blocks may be an option, but the biggest possibility is that you must be accustomed to using gcc to compile programs.
All in all, for ordinary people, mingw-w64 is suitable for learning C language, and vs2015 is better for real work. Of course, if you are working under Linux, code:: blocks may be an option, but the biggest possibility is that you must be accustomed to using gcc to compile programs.
4、 Download and install mingw-w64
Before you start the installation, make sure you meet the following conditions.
1. Your computer is connected to the network.
2. Your computer hard disk has 500MB of free space.
3. You have plenty of time now. (due to your current network speed, the installation process may take more than 10 minutes or 1 hour.)
1. Your computer is connected to the network.
2. Your computer hard disk has 500MB of free space.
3. You have plenty of time now. (due to your current network speed, the installation process may take more than 10 minutes or 1 hour.)
If you confirm that you meet the above conditions, then you can start to install the mingw-w64.
Note: the pictures in the tutorial are the original scale screenshots of the actual installation. If you can’t see the prompt in the pictures, you can enlarge the pictures without affecting the clarity. To view a large picture, just click on the picture and it will jump to the original size picture page. If the previous method fails, you can still enlarge the page function and enlarge the picture through the browser. For example, in Chrome browser, you can press and hold Ctrl key, and then scroll the mouse wheel to enlarge the page.
Selection criteria:
I686 for 32-bit system, x86 for 64 bit system
Thread model: Win32: no C + + 11 multithreading feature, POSIX: support c + + 11 multithreading feature
Exception handling model: recommended for 32-bit system: dwarf, recommended for 64 bit system: SEH
Because the test environment is a 64 bit system, it is recommended to configure x86 ʄ POSIX sEH
Thread model: Win32: no C + + 11 multithreading feature, POSIX: support c + + 11 multithreading feature
Exception handling model: recommended for 32-bit system: dwarf, recommended for 64 bit system: SEH
Because the test environment is a 64 bit system, it is recommended to configure x86 ʄ POSIX sEH
Developepaer local download
- Software name:
- Mingw-w64 for windows (x86-8.1.0-release-posix-seh-rt-v6-rev0.7z) offline installation package with installation tutorial
- Software size:
- 48MB
- Updated:
- 2019-10-05
- Software name:
- Mingw-w64 for windows (x86-8.1.0-release-win32-seh-rt-v6-rev0.7z) offline installation package with installation tutorial
- Software size:
- 48MB
- Updated:
- 2019-10-05
1. Official download
If you can install it online, you’d better install it online.
If you can connect to the official website, you can choose to download it from the official website,
Address: https://osdn.net/projects/mingw/releases/
https://sourceforge.net/projects/mingw-w64/files/
Download from here, select the file you want to download.
As shown in the figure, my choice here is x86 ʄ POSIX sEH
2、7-zip
Installing Mingw W64 Windows 10
The downloaded file is a 7z file. You can unzip it directly. If you don’t have a 7z unzip tool, you can download one.
https://www.7-zip.org/
Go to the official website to download. My system is 64 bit.
![Installing Mingw W64 Installing Mingw W64](/uploads/1/3/7/4/137446461/521408263.png)
Install 7-Zip.
My one is installed on disk D, as shown in the figure:
3. Decompression
After the 7-Zip installation, unzip the files in the directory.
You can choose to copy the downloaded x86-8.1.0-release-posix-seh-rt-v6-rev0.7z file to the 7-Zip directory.
Use the command to extract.
7z x x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z -o./
Command to extract the file to the current directory.
After unzipping, you will get a mingw64 folder and copy it to the directory you want to install.
4. Environment variable
After decompression, you need to configure environment variables
Add your mingw64 / bin under path, for example: D: mingw64 bin
Installing Mingw-w64 On Windows
Use gcc-v in the CMD window to view.
The official installation version provides a bat to set path
![Installing mingw-w64 on windows Installing mingw-w64 on windows](/uploads/1/3/7/4/137446461/341500136.jpg)
echo off
set PATH=d:Program Files (x86)mingw-w64i686-8.1.0-win32-dwarf-rt_v6-rev0mingw32bin;%PATH%
rem echo %PATH%
rem cd “d:Program Files (x86)mingw-w64i686-8.1.0-win32-dwarf-rt_v6-rev0mingw32bin”
cd “C:”
“C:Windowssystem32cmd.exe”
set PATH=d:Program Files (x86)mingw-w64i686-8.1.0-win32-dwarf-rt_v6-rev0mingw32bin;%PATH%
rem echo %PATH%
rem cd “d:Program Files (x86)mingw-w64i686-8.1.0-win32-dwarf-rt_v6-rev0mingw32bin”
cd “C:”
“C:Windowssystem32cmd.exe”
You can set your own path according to your needs. This article introduces it. I hope you can support developepaer in the future.