Logo

Linux und Open Source

Quick search

Navigation

Schulungen

  • Kursangebot
  • Unterlagen & Download
    • Topics
      • Python Programming: From Absolute Beginner to Advanced Productivity
      • 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++ 03
      • C++ 11
      • Linux
      • Unit Testing
      • Linux Kernel Driver Development
      • Generated Topic Graph
  • Organisatorisches
  • Datenschutz
  • Bisher Gehaltene

About

  • Über Mich
  • About 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-2022 (GPLv3), Jörg Faschingbauer. | Page source