Catégories

How to compile C++ code with VS Code and cl

Bonjour, this is a step by step procedure which explains how to compile C++ code with VS Code (aka Visual Studio Code). As you will see the compiler and the linker I will use are the ones coming with Visual Studio 2017. Fundamentally the steps explained here should be similar if you use another compiler. OK, let’s start with the software settings :

  • I’m using Windows 10.
  • Visual Studio 2017 (15.6.2) is installed and at least the C++ load is up and running. I mean you are able to compile some C++ project with Visual Studio 2017.
  • VS Code (1.21.1) …

    Lire la suite How to compile C++ code with VS Code and cl