如何在Windows 10上安装旧版本的GCC [英] How to install older version of GCC on Windows 10
问题描述
我需要在我的计算机上为一个项目安装MinGW GCC 7.3.下载并安装:C:\ MinGW \ bin \ MingGW-get.exe.但是,当我运行它时,它仅使我可以选择安装最新的GCC v9.2.0.如何在计算机上下载并安装GCC v7.3?逐步的指导赞赏.
I need to install MinGW GCC 7.3 on my computer for a project. Downloaded and installed: C:\MinGW\bin\MingGW-get.exe. But when I run it, it only gives me the option to install the latest GCC v9.2.0. How do I download and install GCC v7.3 on my computer? Step-by-step directions appreciated.
推荐答案
您需要支持较早的C/C ++标准,其中 -std =
编译器标志可能已经有用(例如,-对于ISO 1999 C为std = c99
,对于ISO 1998 C ++为 -std = c ++ 98
.
Of you need to support an older C/C++ standard the -std=
compiler flag may already help (e.g. -std=c99
for ISO 1999 C or -std=c++98
for ISO 1998 C++).
请注意,GCC 7.3不是GCC 7的最新版本.最新的GCC 7版本是7.5.0版.您可以从以下位置下载Windows(MinGW-w64)版本: http://winlibs.com/
Note that GCC 7.3 is not the latest version of GCC 7. The latest GCC 7 release is version 7.5.0. You can the Windows (MinGW-w64) version from: http://winlibs.com/
这篇关于如何在Windows 10上安装旧版本的GCC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!