Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 1.88 KB

File metadata and controls

41 lines (21 loc) · 1.88 KB

C++ tooling tutorial

What is this tutorial for?

  • This tutorial explains how to install the tools needed to code in C/C++, but not how to code. You'll still need a generic book/tutorial on C/C++.

  • This tutorial is primarly for Windows. But all tools suggested here are cross-platform, so it's not terribly hard to follow the tutorial on other OSes too (all tools other than MSYS2, which is Windows-only, but isn't necessary on other platforms).

  • There are endless possible tooling choices. In this tutorial we'll install the Clang compiler (or GCC if you prefer) using MSYS2; along with Visual Studio Code, Clangd, LLDB (or GDB) and LLDB-DAP. I consider those to be the best choices available.

    I do explain why I prefer those specific tools, and what are the alternatives.

How to read this tutorial?

I recommend following the steps below in order, unless you already have a good idea what you're doing.

If you're new to C/C++, don't binge-read everything at once. Practice writing small programs and read your C/C++ book between the chapters of this tutorial.

Basics:

Debugging:

Additional information:

(You can read those in any order, but read the Basics above first.)