Skip to content
Koushik Saha edited this page Sep 27, 2021 · 1 revision

Quick Start Guide

✔ Download Winlibs MinGW Compiler ⏬

  • C++ Compilers Read
  • MSYS2 Mingw Compiler Link
  • Winlibs-MinGW Compiler LINK
  • C++ VSCode setup using GCC with MinGW ♨ - READ

✔ VSCode C++ Environment Setup | C++ Path

Inside .vscode/c_cpp_properties.json file in compilerPath section set absolute path

    "compilerPath": "C:/App/Mingw-w64/bin/g++.exe",
    // C++ standard version
    "cppStandard": "c++20",

Inside .vscode/launch.json file

  • In cwd section set absolute path
  • In miDebuggerPath section set absolute path
  • In miDebuggerPath section set relative path but, in this case, we have to set C++ environment variable on system first.
    "cwd": "${fileDirname}",
    "miDebuggerPath": "C:/App/Mingw-w64/bin/gdb.exe", // Absolute one
    "miDebuggerPath": "gdb.exe", // Relative one

Inside .vscode/tasks.json file in command section

  • Set compiler's an absolute path.
  • Set relative path but, in this case, we have to set C++ environment variable on system first.
    // For GCC Compiler
    "command": "C:\\App\\Mingw-w64\\bin\\g++.exe", // Absolute one
    "command": "g++.exe" // Relative one
    // For Clang Compiler
    "command": "C:\\App\\Mingw-w64\\bin\\clang++.exe", // Absolute one
    "command": "clang++.exe" // Relative one
    // For Visual Studio Compiler path
    "command": "cl.exe",
Clone this wiki locally