How to run C++ programs on Visual Studio Code. Setup C++ using MinGW compiler.
HTML-код
- Опубликовано: 10 июл 2024
- Hello and Welcome to my channel! I'm CA and today I will show you how you can setup and run C++ programs on Visual Studio Code. I'll be using MinGW compiler for the same
So watch this video till end and don't skip in between!!.
Useful Links:-
► Install MySQL :- • How to install MySQL t...
► Learn SQL :- bit.ly/3uv6r29
► Reset MySQL password :- • Reset your MySQL passw...
► Visit my Blog:- bit.ly/3eax04I
► Windows 10:- bit.ly/3stSb79
► Follow me on Instagram:- bit.ly/3tww01f
► Don't Click!!! - bit.ly/3an6a8n
Timestamps:
00:00-00:24 | Introduction
00:25-01:16 | Important information
01:17-02:20 | Download MSYS2
02:21-02:51 | Install MSYS2
02:52-04:15 | Update MSYS2 library
04:16-05:21 | Install MinGW Compiler
05:22-06:11 | Configure MinGW Compiler
06:12-07:58 | Add MinGW Compiler to path
07:59-09:20 | Install VSCode extensions
09:21-10:21 | Create a C++ file
10:22-11:18 | Select C++ compiler
11:19-11:33 | Run C++ file
11:34-12:46 | Configure: Clear output on Run
12:47-13:12 | Useful info
13:13-14:42 | Configure: Save file at Runtime
14:43-16:07 | Run a C++ file directly
16:08-18:10 | Configure: User Input (Important!)
18:11-18:39 | Outro
=======================================================
Background Music:-
○ Sunrise by SKIRK / skirkofficial
Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
Free Download / Stream: bit.ly/2Sg2SNU
Music promoted by Audio Library • Sunrise - SKIRK (No Co...
○ Path of the Fireflies - AERØHEAD / aerohead
Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
Free Download / Stream: bit.ly/3fPdsFf
Music promoted by Audio Library • Path of the Fireflies ...
○ Kannushi by DIZARO / dizarofr
Creative Commons - Attribution-NoDerivs 3.0 Unported - CC BY-ND 3.0
Free Download / Stream: bit.ly/dizaro-kannushi
Music promoted by Audio Library • Kannushi - Dizaro (No ...
○ Echoes - Atch / atch-music
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/3wKpk0L
Music promoted by Audio Library • Echoes - Atch (No Copy...
○ Coming Home - Atch / atch-music
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/3yQGawP
Music promoted by Audio Library • Coming Home - Atch (No...
○ Alpine by Declan DP / declandp
Licensing Agreement: declandp.info/music-licensing
Free Download / Stream: bit.ly/alpine-declan-dp
Music promoted by Audio Library • Alpine - Declan DP (No...
Outro Music:-
○ Adventures by A Himitsu / a-himitsu
Creative Commons - Attribution 3.0 Unported- CC BY 3.0
Free Download / Stream: bit.ly/2Pj0MtT
Music released by Argofox • A Himitsu - Adventures...
Music promoted by Audio Library • Adventures - A Himitsu...
===============================================
struggling for 3 days i finally understood the msys installation process and successfully completed all the steps and installed it thanks a ton brother !
Happy that it worked!
Thank you for the vid!!
Without going beyond this is the 1st video of Indian I've watched till the end, suggesting that everyone support him by giving a subscription
Thank you 🇮🇳
thank you so much brother 😭❤❤
No problem 😊
This is the best tutorial for compiling c++
🤜🤛
Thanks Bro👍 you video is really helpfull.
🙂✌
thanks bro your video was really helpful
Glad it helped😇
Thank you for this video
✌❤
Such helpful vidio 😍😍
Thank you!
Thank you very much for sharing
❤✌
Ty. Bro for helping me. From last 2 weeka i was trying to install the mingw compliter bhut many problems were occuring but after watching your video it get installed ty very much bro
I'm glad it helped!
Thank you, bro!!!
You're welcome!
@@EverythingComputerized I subsribed to your channel. 10k subscribers coming soon!!!
Yeah! Thank you!
Thank u bro 🤜
✌
Thanks
❤
Thank you so much! Microsoft says nothing about having to configure g++ within MYSYS2 MYSYS
Because Microsoft has its own VisualC++ compiler. Why will it advertise other🤣
Soch a good vidio solving all problems.and error.
Thanks!
i swear i could not do this and put it off for like a year. thank you so much. one question I have tho; my code runs perfectly, but it says there's a problem with my #include... thing. And it says to update my include path. What does this mean?
It happens sometimes.. happened to me too.. but it shouldn't be an issue if you followed same steps as mine.
Make sure u added mingw to path.
Extensions would do everything by itself.. you just have to code
Mry laptop pr sirf 1st step sahi sey hta h uskey bd second ni hta but pacman k sth pkg conf kro wo install hgya or phr pacman -Syu.... Wli command dli to hua but g++ bin m show ni hrha h issues arhy hyn can u help??
I did as it is you said, but in while writing cpp code in visual studio, I got error at iostream that "#include errors detected.Please update your includePath. Cannot open source file "stddef.h"(dependency of "iostream") ". Please tell me how to fix it.
Please follow exact same thing that I did. Then it will work.
every time i try to run a code it displays this message in output window "cc1plus.exe: fatal error: code.cpp: No such file or directory
compilation terminated." what is the problem?
Just make sure that the filename of the source code should be of one word.. if you named "my code.cpp" just rename it to "my_code.cpp".
Two words will cause problem.
To run python code I need to download python extension only?
Or have to do something else.
U need the python interpreter also..
please tell me about c++ software for window 7 64bit.
U can try msys2 setup for windows 7 64 bit.
But after some time, windows 7 will not be supported.
I am using older version of VS code in windows 7 does this method will work there ?
U can try.. if its 64 bit, it should work
@@EverythingComputerized When I am double clicking on PATH it does not shows option to create new one just shows to edit the path
So do I have to create new variable or something else?
Yes.. edit it.. windows 7 has no new option
Thanks for the kind and quick responses.
It's working just fine.
One more thing I wanted to ask is if I want to run C programs then I just have to download it's extension file only right ?
C will also work in this setup only!
No additional things required.
Just make a file with .c extension and it will work like butter!
bro, I need to do competitive prog. so what modifications i need to do kindly tell...
Nothing much.. just follow what I had shown.
Other than that, you'll need to setup input and output if you'll use text files for testcases..
@@EverythingComputerized yes i think i will need to use text files for text cases .. how to then setup the input and the output ..other than this i have followed all your steps
*test cases
Just do a google search.. I havent tried that yet though.. it must be done using file handling
@@EverythingComputerized kk thanks
C programs ke liye bhi work krega
Ji bilkul