Search results
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?
Some software only supports MSVC on Windows (e.g. CPython, including native modules) so you may have to use it. 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.
MinGW because it's the closest to GCC and gives me a good indication of whether or not my code will compile cross-platform without having to wait for the build system. My code has to run on OSX, Linux and Windows. Visual C++ because it often has higher performance with math calculations than MinGW. It's often comparable to GCC on Linux though.
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.
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.
People also ask
Is MinGW better than MSVC?
Is MinGW compliant?
Is MinGW-w64 Seh better than MSVC 2010?
Is OCCT better than MinGW-w64?
Is MinGW worth it?
Can I use Visual Studio compiler with MinGW & Visual Studio?
Nov 5, 2024 · This means that the msvc target will effectively only work when the host system is Windows (and the host system needs the SDK/MSVC files installed separately from Zig). MinGW (which is what the gnu ABI means when targeting Windows) is an effort to provide those same headers/libraries (in terms of ABI-compatibility) that can actually be ...