Hacker News new | ask | show | jobs
by ElongatedTowel 4226 days ago
Should msvc be the go-to compiler on Windows for C++? I was getting back into the language and was quickly reminded of all the compiler and dependency hazzle, especially when coding for several operating systems. On top of that some older solutions aren't even a good idea anymore, like the whole mingw vs mingw-w64 crap.

Seems to me that from a precompiled binary and build management perspective it's just the easiest way to use whatever is best supported on each platform. Which seems to be clang on MacOS, gcc/clang on Linux and msvc on Windows.

I had to use chromiumembeddedframework in one project and compiling it with gcc or clang on Windows isn't even a choice. Even if there is a way to get it to work, it's a huge project that takes quite a lot of resources to build. Even if it was easy, prebuild is still a lot faster.

With the newest version always beeing free and tools like CMake beeing able to generate projects the only downside I can see is that msvc would dictate the features I'm able to use.