![]() ![]() Ok… Now the big question… How do we compile the code ? In another page I explained how to invoke the C++ compiler that comes with Visual Studio (cl). You don’t have to but if you plan to edit some C++ code in VS Code I would recommend to install the « C/C++ » extension for Visual Studio Code.VS Code (1.21.1) is also installed (otherwise this page makes no sense □ ). ![]() Basically it includes everything needed (compiler, linker etc.) except the Visual Studio IDE itself. If you really don’t want to install Visual Studio Code 2017 (this is a mistake because the debugger is, by far, one of the best available) you could install the Visual Studio Build Tools (make sure to scroll down the page). I mean you are able to compile a C++ project with Visual Studio 2017. Visual Studio 2017 (15.6.2) is installed and the C++ « load » is up and running.As for everything else, YouTube is your friend : here and there for example.įirst thing first, few words about is the settings : Yes, I will give some short explanations but this page is not a CMake tutorial. ![]() Oh, by the way… Before to read further, I realize you need to know (more or less) what is CMake, Make (or NMake) and a Makefile. However the steps explained here should be similar if you use another compiler. As you will see the compiler and the linker I will use are the ones coming with Visual Studio 2017. This is a step by step procedure which explains how to compile C++ code using CMake and VS Code (aka Visual Studio Code). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |