Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 c++11 中使用正则表达式并且 gcc 4.8.2 支持它。但是 MinGW 安装程序最多只支持 gcc 4.8.1。如何将其更新到 gcc 4.8.2?
你可以自己手动安装。这里有4.8.2的 MinGW-w64 发行版。
您需要7zip来提取文件内容。将其解压缩到您选择的位置后,只需将bin子目录从那里添加到您的环境中path,您应该一切顺利。
bin
path
例如,如果您将工具链提取到x:\mingw32-4.8.2然后添加x:\mingw32-4.8.2\bin使用
x:\mingw32-4.8.2
x:\mingw32-4.8.2\bin
setx 路径 "%path%; x :\mingw32-4.8.2\bin"
重新启动命令提示符以使其生效。如果您安装了较旧的 mingw 版本,您可能希望将其删除以避免潜在的冲突。