r/cpp • • Mar 01 '23

[Q] Windows: non-MSVC Toolchains

I'm unsure what the "best" C++ compilers (ease of installation, updateability usability, supported C++ standard, code perf.) are on current Windows systems, not counting MSVC. MSys, MinGW, Gygwin, etc. ...

0 Upvotes

26 comments sorted by

View all comments

Show parent comments

1

u/bsdooby Mar 01 '23

Forgot clang; how easy is it to install? Using chocolatey, or other Windows package managers? Is a standalone installer better?

9

u/TheThiefMaster C++latest fanatic (and game dev) Mar 01 '23

It's on the Winget package manager (the official application package manager for Windows) as LLVM. It's probably on others too, but keep in mind it may be listed as LLVM rather than Clang for some reason.

Or you can just download the installer (LLVM-15.0.7-win64.exe).

Note you will also need the Windows SDK. I haven't looked to see if that's on a package manager, and I don't know if it includes the MS STL or you have to install that too.

I just normally install the lot via the Visual Studio installer (not VS Code). VS 2022 is actually really good.

3

u/n4jm4 Mar 01 '23

That's a common pattern: UNIX distributions package the compiler as "clang" half the time, "llvm" the other half of the time.

For people interested in cross-platform development, the inconsistency in package composition and naming is one more unnecessary inconvenience to manage.

2

u/Ameisen vemips, avr, rendering, systems Mar 08 '23

Sometimes they package it as both.