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?
I run Ubuntu 20_04 under WSL for doing embedded development. I do all of my development from Visual Studio using CMake. I can compile using MSVC from windows, gcc10/gcc9 from WSL or clang(can't remember the version) from the FreeBSD box. As of VS 2019 version 16.8(10NOV20), MSVC is C11/C17 compliant.
Visual C++ because it often has higher performance with math calculations than MinGW. It's often comparable to GCC on Linux though. Visual C++ debugs better on Windows too.
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.
Jul 26, 2023 · As you've already discovered, MSVC (Microsoft Visual C++) is a Windows-based tool and it is not supported directly on Linux. However, there are some alternatives to build Windows applications from a Linux system: Cross-Compilers: MinGW-w64 is a development environment for Windows applications that can be run on Linux.
People also ask
Is MinGW better than MSVC?
Is OCCT better than MinGW-w64?
Is MinGW-w64 Seh better than MSVC 2010?
Can I use Visual Studio compiler with MinGW & Visual Studio?
Should I build MinGW on Linux or Windows?
Should I use GCC (MinGW) or MSYS2?
Jan 2, 2017 · Using MSVC, the C++ standard library is in an entirely different DLL, so the conflict doesn’t exist and both 64bit and 32bit binaries work fine for QML and CxxWrap.