Search results
The only advantage is that you get a statically-linked CRT — versus linking against an old msvcrt.dll per Mingw-w64 — though historically Microsoft's UCRT has been kind of buggy, and those bugs then get baked into your binaries.
We have the MinGW-W64 that is a fork of MinGW that supports those features and I was wondering, which one to use? Knowing that GCC is one of the most used C++ compilers. Or it's better to use the MSVC (VC++) on Windows and GCC on Linux and use CMake to handle with the independent compiler?
For mingw, you want to download and install MSYS2. Using the builtin terminal, search for gcc pacman -Ss gcc. You can install gcc for "mingw32", "mingw64", or "ucrt64"; I always use "ucrt64" pacman -S ucrt64/mingw-w64-ucrt-x86_64-gcc.
Yes, IMO your best option on Windows is to stick with MSVC or ABI compatible compilers. As for missing out on the 'new and shiny stuff', if you're just learning the new things then you can just stick to learning what MSVC supports and you won't be bothered.
MSVC is doing the compilation job significantly faster than MinGW-w64. The DLL sizes are comparable, if optimization is set to "-O2" for MinGW-w64, with "-O3" the DLLs from MinGW-w64 are larger. Binary files compiled with MinGW-w64 are performing significantly better than those compiled with MSVC.
Apr 22, 2016 · MSVC is doing the compilation job significantly faster than MinGW-w64. The DLL sizes are comparable, if optimization is set to "-O2" for MinGW-w64, with "-O3" the DLLs from MinGW-w64 are larger. Binary files compiled with MinGW-w64 are performing significantly better than those compiled with MSVC.
People also ask
Is MSVC better than MinGW?
Is OCCT better than MinGW-w64?
Is MinGW-w64 Seh better than MSVC 2010?
Is GCC/MinGW a good compiler?
Does MinGW-w64 support thread?
Should I use GCC (MinGW) or MSYS2?
Nov 5, 2024 · When zig is responsible for compiling all of the C, C++, and Zig code for a given project, then there is 0 downsides to using mingw-w64 as the C ABI. The upsides are huge: no dependency on MSVC being installed.