Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update to mingw-gcc 4.8.2?

Tags:

c++

mingw

gcc4.8

I want to use Regular expression in c++11 and gcc 4.8.2 supports it. But the MinGW installer only supports up to gcc 4.8.1. How can I update it to gcc 4.8.2?

like image 692
tenos Avatar asked Nov 12 '13 06:11

tenos


People also ask

What is MinGW and GCC?

What is MinGW? MinGW is a compiler system based on the GNU GCC and Binutils projects that compiles and links code to be run on Win32 (Windows) systems. It provides C, C++ and Fortran compilers plus other related tools.


1 Answers

You can manually install it yourself. There's a MinGW-w64 distribution for 4.8.2 available here.

You'll need 7zip to extract the file contents. After you unzip it to a location of you're choosing just add the bin subdirectory from there to your environment path and you should be good to go.

For example, if you extracted the toolchain into x:\mingw32-4.8.2 then add x:\mingw32-4.8.2\bin using

setx path "%path%;x:\mingw32-4.8.2\bin"

Restart the Command Prompt for it to take effect. If you have an older mingw version installed you might want to remove that to avoid potential conflicts.

like image 131
greatwolf Avatar answered Oct 09 '22 14:10

greatwolf