This setup will make your CP faster, no need to input data manually to the prompt again and again, code input and output will be in a single window.
Get dynamically generated GitHub stats!
- Install MSYS2
- Install the G++ and G++ Compilers
- Install the Debugger
- Add the Directory to the Path of the Environment Variables
- Check the Install
At first download the executable file from MSYS2. Go to the official website of MSYS2: https://www.msys2.org/ Scroll-down a little bit until you find the download button for the executable file.
-
Download and install the exeicutable.
-
Wait untill installation is completed.
-
Open MSYS2 MSYS terminal
-
Apply the command below to update the package database and the base packages:
pacman -Syu
-
Reopen the MSYS2 MSYS terminal and apply the command below
pacman -Su pacman -Sy
If you are using a 64 bit operating system
then open MSYS2 MinGW x64
terminal and execute the command below:
pacman -S mingw-w64-x86_64-gcc
MSYS2 MinGW x86
terminal and execute the command below:
pacman -S mingw-w64-i686-gcc
If you are using a 64 bit operating system then execute the command below on MSYS2 MinGW x64
terminal :
pacman -S mingw-w64-x86_64-gdb
MSYS2 MinGW x86
terminal :
pacman -S mingw-w64-i686-gdb
Click on windows button and search Environment Variables
then open it.
-
If you are using a 64 bit operating system, then go to
mingw64 > bin
folder fromC:\
directory and copy the path or copy the path from below:C:\msys64\mingw64\bin
⚠️ If you are using a 32 bit operating system, then go tomingw32 > bin
folder fromC:\
directory and copy the path or copy the path from below:C:\msys64\mingw32\bin
-
Click on
Path
, clickEdit
, add anew
path and Paste coppied directory here. ClickOK
.
Open the terminal / PowerShell / CMD and apply the commands serially:
-
check for the
GCC
version:gcc --version
-
check for the
G++
version:g++ --version
-
check for the
GDB
version:gdb --version
At last, install sublime text editor
and copy these build
files to the sublime text editor
's tool
option directory. Select a build
file from the tool
option and enjoy your CP
.