Home > Mobile >  Compare goldbolt and MSVC C version
Compare goldbolt and MSVC C version

Time:08-07

I have written some code that compiles on godbolt, but does not compile in Microsoft Visual Studio. I am trying to figure out why. My first step was to compare compiler versions. On goldbolt, I am compiling the code using "x64 msvc v19.latest." I googled "how to check msvc version," and all of the directions I can find lead me to the MSVS version, which is 17.2.6.

How can I find my MSVC version that is comparable to the godbolt version?

CodePudding user response:

You can look up version numbers here: Microsoft Visual C - Internal version numbering.

Godbolt uses _MSC_VER separated by a dot, e.g. 1914 is 19.14 on Godbolt.

  • Related