如何更新到mingw-gcc 4.8.2? [英] How to update to mingw-gcc 4.8.2?
问题描述
我想在c ++ 11中使用正则表达式,而gcc 4.8.2支持它.但是MinGW安装程序最多仅支持gcc 4.8.1.如何将其更新为gcc 4.8.2?
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?
推荐答案
You can manually install it yourself. There's a MinGW-w64 distribution for 4.8.2 available here.
您需要 7zip 来提取文件内容.将其解压缩到您选择的位置后,只需将bin
子目录从该目录添加到您的环境path
中,您应该会很好.
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.
例如,如果您将工具链提取到x:\mingw32-4.8.2
中,则使用
For example, if you extracted the toolchain into x:\mingw32-4.8.2
then add x:\mingw32-4.8.2\bin
using
setx路径%path%; x :\ mingw32-4.8.2 \ bin"
setx path "%path%;x:\mingw32-4.8.2\bin"
重新启动命令提示符,以使其生效.如果您安装了较旧的mingw版本,则可能要删除该版本以避免潜在的冲突.
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.
这篇关于如何更新到mingw-gcc 4.8.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!