Environments - MSYS2 这里说的很清楚了
The cross compilers come in versions running on either x86_64 or aarch64. (They're built on Ubuntu, but hopefully do run on other contempory distributions as well.) There are packages with two different choices of CRT (C runtime) - the primary target is UCRT (the Universal C Runtime)...
An LLVM/Clang/LLD based mingw-w64 toolchain. Contribute to mstorsjo/llvm-mingw development by creating an account on GitHub.
Win64 - x86_64 - Windows 64-bit version, runs natively on and compiles for Windows 64-bit (will not run on Windows 32-bit) Release versions UCRT runtime GCC 14.2.0 (withPOSIXthreads) + LLVM/Clang/LLD/LLDB 19.1.1 + MinGW-w64 12.0.0 UCRT - release 2(LATEST) ...
clang 和 gcc 是两个不同的 C/C++ 编译器,而mingw-w64是一个 Windows 上的编译和运行时环境。
A MinGW toolchain, LLVM/Clang 15 and GCC 12 from MSYS2 are tested. llvm-mingw is also tested. The best way to get a working toolchain is install the following in MSYS2: # CLANG64 Subsystem, with LLVM/Clang pacman -S mingw-w64-clang-x86_64-{toolchain,cppwinrt,cmake,ninja} # UCRT6...
If you are using another version of Windows, run the following command that does not use UCRT:pacman -S --needed base-devel mingw-w64-x86_64-toolchain When adding the the MinGW-w64 destination folder to your list of environment variables, the default path will then be: C:\msys64\mingw...
clang 和 gcc 是两个不同的 C/C++ 编译器,而mingw-w64是一个 Windows 上的编译和运行时环境。
File format is not the problem here but sincelib<name>.ais typically associated with MinGW/mingw-w64 toolchains this might be confusing for users when mingw-w64 GCC/Clang created static library breaks their build, like infamous strawberry perl that you've mentioned. ...