Install C++

1. Install Compiler

Microsoft Compiler (MSVC)

Only on Windows

GNU Compiler Collection (GCC)

Windows

via Pacman

pacman -S mingw-w64-x86_64-gcc

MacOS

via HomeBrew

brew install gcc

Linux

via Apt (Ubuntu/Debian)

sudo apt install build-essential

via Dnf (Fedora)

sudo apt install build-essential

via Pacman (Arch)

sudo pacman -S gccl

Clang (LLVM)

Windows

via Winget

winget install LLVM.LLVM

MacOS

XCode Command Line Tools

xcode-select --install

Linux

via Apt (Ubuntu/Debian)

sudo apt install clang llvm

via Dnf (Fedora)

sudo dnf install clang llvm

2. Install Editor

Visual Studio

Only on Windows

A full-featured integrated development environment (IDE) mainly for Windows. It is widely used for C++, C#, .NET, and Windows application development, offering powerful debugging, profiling, and native integration with MSVC and Windows SDKs.

Visual Studio Code

A lightweight, cross-platform code editor with an extension-based ecosystem. It supports many languages and tools via plugins and is popular for web development, scripting, and general-purpose programming rather than heavy IDE workflows.

XCode

Only on MacOS

Apple’s official IDE for macOS, iOS, watchOS, and tvOS development. It includes compilers, SDKs, Interface Builder, and tools tightly integrated with Apple platforms and the Swift and Objective-C languages.

QtCreator

An IDE focused on Qt application development. It provides strong support for C++ and QML, with integrated UI design tools, cross-platform build systems, and seamless integration with the Qt framework.

Jetbrains CLion

A cross-platform C/C++ IDE by JetBrains. It emphasizes code analysis, refactoring, and modern CMake-based workflows, with deep understanding of C++ code and strong debugger integration.