Step 1) Install mingw64 compiler
There are two ways to install this compiler.
A) Download mingw64 installer from http://mingw-w64.org/doku.php/download . Select MingW-W64-builds
You don't have to put it in 'Program Files' like the installer does.
Step 2) Once installation is over then set windows path.
Open control panel, search "env", select edit system settings. Now, under system variables
select "path" and select edit option. Now, add new entry "C:\<path to mingw64>\bin" and move it up little bit, and just below system32 paths.
Click ok to all.
Step 3) Check if C++ compiler installation is successful
Now, open terminal, and run "g++ --version". If you see mingw related info then installation is success.
Note: if you still have trouble downloading the compiler, click on the 'Problems Downloading?' button on the next screen so you can try to download it from different site around the world.
============================================================
Codelite IDE setup
Download Codelite IDE from: https://codelite.org/
Open codelite IDE, select "Run the setup wizard" under "help" section. Map/scan for already installed c++ compiler "mingw64" and setup this path.
Create workspace with C++ type.
Create Project with below options:
Category: console
Type: Simple executable (g++)
Compiler: Mingw
Debugger: GNU gdb debugger
Build system: Default
Update project configuration as
Linker option : -static
Compiler options (add): -Wall; -std=c++17;
--------------------------------------------------------------------
To build & Run: Select "Run" under "build" section
===============================================================
There are two ways to install this compiler.
A) Download mingw64 installer from http://mingw-w64.org/doku.php/download . Select MingW-W64-builds
It will download installer, and run that file. Chose correct settings during setup like 32bit/64bit configuration.
B) If you are facing any issue with type A, then one can directly download mingw64.7z file.
Once downloaded, extract the .7z file onto your PC using 7-zip and extract to a folder such as C:\MinGW64.You don't have to put it in 'Program Files' like the installer does.
Step 2) Once installation is over then set windows path.
Open control panel, search "env", select edit system settings. Now, under system variables
select "path" and select edit option. Now, add new entry "C:\<path to mingw64>\bin" and move it up little bit, and just below system32 paths.
Click ok to all.
Step 3) Check if C++ compiler installation is successful
Now, open terminal, and run "g++ --version". If you see mingw related info then installation is success.
Note: if you still have trouble downloading the compiler, click on the 'Problems Downloading?' button on the next screen so you can try to download it from different site around the world.
============================================================
Codelite IDE setup
Download Codelite IDE from: https://codelite.org/
Open codelite IDE, select "Run the setup wizard" under "help" section. Map/scan for already installed c++ compiler "mingw64" and setup this path.
Create workspace with C++ type.
Create Project with below options:
Category: console
Type: Simple executable (g++)
Compiler: Mingw
Debugger: GNU gdb debugger
Build system: Default
Update project configuration as
Linker option : -static
Compiler options (add): -Wall; -std=c++17;
--------------------------------------------------------------------
To build & Run: Select "Run" under "build" section
===============================================================