如何更新到mingw-gcc 4.8.2? [英] How to update to mingw-gcc 4.8.2?

查看:156
本文介绍了如何更新到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆