You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) (You may follow [these instructions](https://code.visualstudio.com/docs/cpp/cmake-linux))
129
-
3. Install [CMake](https://cmake.org/) and add to path.
130
-
4. For Windows, install [Msys2](https://www.msys2.org/). (You may follow [these instructions](https://code.visualstudio.com/docs/cpp/config-mingw)). For other platforms, make sure [gcc](https://gcc.gnu.org/) is installed.
131
-
5. Open the project root folder in VS Code (where the top ```CMakeLists.txt``` lives). By default CMake Tools will configure the project for you, creating a ```build``` folder. You may build and run tests using the task bar on the bottom of your screen.
129
+
3. Install [CMake](https://cmake.org/) and add to path during installation.
130
+
4. For Windows, install [Msys2](https://www.msys2.org/). (You may follow [these instructions](https://code.visualstudio.com/docs/cpp/config-mingw)) and add ```C:\msys64\mingw64\bin``` to path. Open an Msys2 terminal type, in ```pacman -Syu``` and ```pacman -S --needed base-devel mingw-w64-x86_64-toolchain```. For other platforms, make sure [gcc](https://gcc.gnu.org/) is installed.
131
+
5. Verify g++ installation by typing ```g++ --version``` in an Msys2 terminal. It should display the current version.
132
+
6. Open the project root folder in VS Code (where the top ```CMakeLists.txt``` lives). By default CMake Tools will configure the project for you, creating a ```build``` folder. You may build and run tests using the task bar on the bottom of your screen.
133
+
7. If CMake tools fails to find prefered generator, set ```"cmake.generator": "C:\msys64\mingw64\bin"``` in VS Code settings.
132
134
133
135
You will need a C++ compiler to compile ```.cpp``` files. You can use [VS Code with gcc](https://code.visualstudio.com/docs/languages/cpp) for this task.
0 commit comments