Installing MinGW to build C++ Code on Windows

preview_player
Показать описание
In this video, we guide you through installing the MinGW toolkit to compile C++ on a Windows machine in Visual Studio Code.*

0:00 Introduction
0:14 MinGW Explained
0:41 Downloading VS Code and the C++ Extension
0:57 Downloading the MSYS2 Installer
1:16 Installing the MinGW Toolkit*
1:44 Editing the PATH Environment Variable
2:24 Verify Compiler Installation via Command Pallette
2:44 Verify Compiler Installation via Select IntelliSense Configuration

*COMMAND LINE for Installing the MinGW Toolkit:
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain

Get Started with MinGW in Visual Studio Code:

Connect and Subscribe:
Рекомендации по теме
Комментарии
Автор

Thanks Vs code and Mr Tarik for making my life easier. I was trying to configure the compiler from past 2 days. But finally have configured it now. Thank you once more.

Goodguy
Автор

Awesome.. concise, with all the info needed to get started. All instructional videos should be like this :)

wribbit
Автор

This video was very clear and easy to follow. Excellent.

ChrisP
Автор

Thanks a lot Mr. Tarik and the VS Code community! This video helped a lot.😃

sahilundirwade
Автор

Not able to find the selections what you showed on for 'Edit Environment selection' .. I am already using VsCode for Python.. Do I need to change anything else?

pchandrahas
Автор

Thank you so much man. This video was incredibly helpful

SinisterStudyStream-werw
Автор

Thank you so much, after being stuck with this for 5 hours and 69420 errors the installer gave me, I can't express how grateful I am to this tutorial

sadiqshaikh
Автор

sir, i followed all your steps but when i used command > for checking if i had the compiler so i didnt find it (no things showed)

xcvrony
Автор

I had been stuck on it for 2 years, finally landed on this video and my problem is solved. Damn!
Thanks a lot!!

PrateekAgrawal-tvog
Автор

Thank you thank you so much
I have been trying to set up vs code since 3 days and almost tried 20 times with various methods but couldn't.
But after watching your video I solved the problem in first trying.

acesgaming
Автор

Sir I am facing a problem in the command prompt, after I type gcc --version it says 'gcc' is not recognized as an internal or external command,
operable program or batch file.

htdwmqs
Автор

Thank you so much man. This video was incredibly helpful. Its a relief to able to use VS for C

seikharishuddin
Автор

Unable to resolve configuration with compilerPath "e:\foo\bar\Makefile". Using "cl.exe" instead. :/

lufog
Автор

I'm having issues running C++ code that uses LAPACK? Should I download necessary LAPACK libraries/packages from MSYS2 and then save the corresponding .dll files in the same directory as the 'path variable' (i.e., the same directory as the compiler)?

kurtenkera
Автор

my version is 6.3.0 is that a good thing or I should update it. If I should, how do I do that?

iprswvi
Автор

Thank you vs code ;
the only video on yt, that solved the problem .
the part at 2:45 solved the issue that was causing hinderance in the output,
thanks once again .

aashirafiq
Автор

perfect now i can start my journey of hard coding in cpp

lonewolf
Автор

I have some unknown error in Msys2
Yours said at bottom 58/58 but mine had some extra errors
& Now when I check in Command prompt the version doesn't show up

What do I do??

uqcfddy
Автор

At 2:24 in the command prompt it shows that (gcc is not recognized as an internal or external command ), what should I Do now ?

AhmedAbdullah-qfou
Автор

this helped me in a sticky situation. thanks man

vaibhavsingh