Supported Compilers¶

ITK requires a compiler with C++17 support.

The standard compilers for common operating systems are:

Visual Studio¶

Visual Studio includes the MSVC compiler. It can be installed for free with the Visual Studio Community Edition application. The paid version is Visual Studio Professional Edition. Note that Visual Studio Code (aka VS Code) is a different project and does not include a C++ compiler by default.

  • VS2017 and earlier: NOT supported

  • MSVC toolset v142 (first shipped with VS2019): supported

  • MSVC toolset v143 (first shipped with VS2022): supported

GNU Compiler Collection¶

GCC is installed on Ubuntu Linux with:

apt install build-essential

LLVM Clang¶

AppleClang¶

AppleClang is included with the XCode application and is available from the Apple App Store.

To trigger installation of the Xcode Command Line tools, run:

xcode-select --install

Intel C++ Compiler¶

  • Intel C++ 19.1 and later

Future versions¶

Future versions of these compilers should be backwards compatible, and thus ITK is expected to work with them.

In the near term, ITK should continue compiling with new compiler versions, probably with some warnings. Eventually, ITK will stop compiling with newest compiler versions. But upgrading to a newer version of ITK is recommended long before then!