在 Windows 上安装最新版本的 mingw-w64

问题描述:

我正在拼命尝试安装 mingw-w64 的最新版本,以便在 Windows 10 *问 gcc 10.

I am desperately trying to install the latest version of mingw-w64 to get acess to gcc 10 on windows 10.

我以前用过mingw-w64的在线安装器,但是还是卡在2018年8.1.0上,好像被废弃了.

I used the online installer for mingw-w64 in the past, but it is still stuck in 2018 on 8.1.0 and seems to be abandoned.

所以我尝试手动安装它.

So i tried installing it manually.

在 SourceForge 或 GitHub Mirror 上,您似乎只得到一大块代码,而没有任何关于做什么、如何构建和安装它的明确说明.我设法找到的唯一安装说明要求您已经安装了一个可以工作的 gcc(如果这是您首先想要安装的非常有帮助).

On SourceForge or the GitHub Mirror you seem to only get a chunk of code without any clear instructions on what do do, how to build and install it. The only installation instructions that i managed to find required you to already have a working gcc installed (very helpful if that is what you want to get installed in the first place).

在他们的网站和维基上提到了一个预编译的二进制包.但我能找到的唯一一个也非常过时.

On their website and wiki there is a precompiled binary package mentioned. But the only one that i could find was horribly outdated as well.

将其与 clang 或 Microsoft 构建工具的安装过程进行比较,我真的很震惊,像安装这样基本的东西会如此令人困惑.

Comparing this with the installation process of clang or the microsoft build tools, it actually blows my mind how something as basic as installation can be this confusing.

也许只是我错过了显而易见的东西,但你如何实际安装这个东西?

Maybe it's just me missing the obvious , but how do you actually install this thing?

GCC 10 正式发布.可以从 http://winlibs.com 下载的 Windows 个人版本 (MinGW-w64) 不需要安装,只需解压到一个文件夹.

GCC 10 is officially released. The personal build for Windows (MinGW-w64) that can be downloaded from http://winlibs.com requires no installation, just extract to a folder.