安装MinGW-w64

快速安装 MinGW-w64 的方法.

  1. 访问 WinLibs - GCC+MinGW-w64 compiler for Windows

  2. 下载 MSVCRT runtime

  3. 解压后添加到 系统环境变量

  4. 测试验证

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    
    > gcc --version
    gcc.exe (MinGW-W64 x86_64-msvcrt-posix-seh, built by Brecht Sanders) 13.1.0
    Copyright (C) 2023 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    > make --version
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    This program built for i386-pc-mingw32