Logo

Programming Linux

Quick search

Navigation

Courses

  • Courses Overview
  • Slide Material
    • Linux
    • Python Programming
    • The C Programming Language
      • Introduction
        • Installation
        • Introduction
        • Hello World
        • Variables and Arithmetic
        • Exercise: A Better Fahrenheit Table
        • for Loops
        • Exercise: Fahrenheit Table Using for
        • Symbolic Constants
        • Exercise: Fahrenheit Table Using Macros
        • Character I/O
        • Exercise: wc For The Poor
        • Arrays
        • Exercise: Character Histogram
        • Functions
        • Exercise: Forward Declaration
        • Character Arrays
        • Exercise: Read Line Into String from stdin
        • Lifetime of Variables
      • Types, Operators, Expressions
      • Program Flow
      • Functions and Program Structure
      • Pointers and Arrays
      • Structures
      • Memory
      • Advanced Language Features
      • Program Sanity
      • Performance
      • Profiling
    • C++: TODO List
    • C++: Miscellaneous Live-Hacking
    • C++
    • The New C++ (11-…)
    • Design Patterns With C++
    • C++ Code
    • C++ Exercises
    • CMake
    • Is Software A Craft? Software Is A Craft! ⟶ Clean Code
    • Unit Testing With googletest
  • How To Book
  • Log Of Past Courses

About

  • Myself: Contact, Impressum, …
  • This Site

Blog

  • Posts

Installation¶

On Windows¶

  • https://code.visualstudio.com/docs/cpp/config-mingw

  • https://www.msys2.org/

  • OS specific settings.json. Won’t work. VSCode still has no platform specific settings.

    • https://github.com/microsoft/vscode/issues/5595 (live)

    • https://github.com/microsoft/vscode/issues/17619

  • https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-settings.md

$ pacman -S mingw64/mingw-w64-x86_64-cmake
  • C/C++ for Visual Studio Code

    • Especially, install mingw-x64 compiler

  • CMake download

  • Get started with CMake Tools on Linux

  • GTest (optional): https://medium.com/swlh/google-test-installation-guide-for-c-in-windows-for-visual-studio-code-2b2e66352456

On Linux¶

  • Install Tools

    As root …¶
    # dnf install gcc-c++ cmake gtest
    
  • C/C++ for Visual Studio Code

  • Get started with CMake Tools on Linux

©2019-2025 (GPLv3), Jörg Faschingbauer. | Page source