MinGW-w64 Installation for C & C++

Use below url to download MingGW-w64.

Select default folder and continue to next screen

Finally the installation is complete

see below URL for additional details

Find your installation path as you will have to set an Environment variable

C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin

Goto “This PC” -> Right Click ->”Properties”

Goto “Advanced Settings” in Settings

Select the “Environment Variables”

Find the “PATH” Environment Variable highlight the variable as shown in blue and then click “Edit”

In the next pop-up select “New”

A new line will openup in the end and then paste the Mingw-64/bin path in my case it is

C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin

After setting PATH variable – reboot your computer.

After restarting you computer run VS Code and you should be able to run the code.

%d bloggers like this: