How to update mingw-gcc 4.8.2?

I want to use regex 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 upgrade it to gcc 4.8.2?

+8
c ++ mingw
source share
1 answer

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

You will need 7zip to extract the contents of the file. Once you unzip it to your chosen location, you just add the bin subdirectory from there to your path environment, and you should be good to go.

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

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

Restart the command line for it to take effect. If you have an old version of mingw installed, you can remove it to avoid potential conflicts.

+7
source share

All Articles