How to update to mingw-gcc 4.8.2?

拈花ヽ惹草 提交于 2019-12-10 12:49:50

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/19922382/how-to-update-to-mingw-gcc-4-8-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!