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...
    ===============================================

Комментарии • 58

  • @atrikroy9160
    @atrikroy9160 Год назад +6

    struggling for 3 days i finally understood the msys installation process and successfully completed all the steps and installed it thanks a ton brother !

  • @Potato_HUN
    @Potato_HUN 4 месяца назад +1

    Thank you for the vid!!

  • @iradufashaBikri
    @iradufashaBikri Год назад +1

    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

  • @prasadagalave
    @prasadagalave Год назад +4

    thank you so much brother 😭❤❤

  • @andreicn0
    @andreicn0 Год назад +2

    This is the best tutorial for compiling c++

  • @GAMER-ff8lb
    @GAMER-ff8lb Год назад +3

    Thanks Bro👍 you video is really helpfull.

  • @srinikethsudheendra
    @srinikethsudheendra Год назад +1

    thanks bro your video was really helpful

  • @evilpollination1916
    @evilpollination1916 Год назад +1

    Thank you for this video

  • @jitendraubhale4761
    @jitendraubhale4761 2 года назад +2

    Such helpful vidio 😍😍

  • @samhoroub
    @samhoroub Год назад +2

    Thank you very much for sharing

  • @abhirajyadav6725
    @abhirajyadav6725 Год назад

    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

  • @l--1998
    @l--1998 Год назад +1

    Thank you, bro!!!

  • @ytbmod5128
    @ytbmod5128 2 года назад +2

    Thank u bro 🤜

  • @vishalnale7182
    @vishalnale7182 Год назад +1

    Thanks

  • @nicholaslambiase7154
    @nicholaslambiase7154 Год назад +1

    Thank you so much! Microsoft says nothing about having to configure g++ within MYSYS2 MYSYS

    • @EverythingComputerized
      @EverythingComputerized  Год назад

      Because Microsoft has its own VisualC++ compiler. Why will it advertise other🤣

  • @jitendraubhale4761
    @jitendraubhale4761 2 года назад +3

    Soch a good vidio solving all problems.and error.

  • @Lumiyo_
    @Lumiyo_ Год назад +2

    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?

    • @EverythingComputerized
      @EverythingComputerized  Год назад

      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

  • @tehreemali-xm1od
    @tehreemali-xm1od 4 месяца назад

    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??

  • @Vk12769
    @Vk12769 Год назад +1

    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.

  • @snoojalqouba3305
    @snoojalqouba3305 Год назад +1

    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?

    • @EverythingComputerized
      @EverythingComputerized  Год назад

      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.

  • @kushalgupta7713
    @kushalgupta7713 2 года назад +1

    To run python code I need to download python extension only?
    Or have to do something else.

  • @hemagupta4347
    @hemagupta4347 Год назад +1

    please tell me about c++ software for window 7 64bit.

    • @EverythingComputerized
      @EverythingComputerized  Год назад

      U can try msys2 setup for windows 7 64 bit.
      But after some time, windows 7 will not be supported.

  • @chief9482
    @chief9482 2 года назад +1

    I am using older version of VS code in windows 7 does this method will work there ?

    • @EverythingComputerized
      @EverythingComputerized  2 года назад +1

      U can try.. if its 64 bit, it should work

    • @chief9482
      @chief9482 2 года назад +1

      @@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?

    • @EverythingComputerized
      @EverythingComputerized  2 года назад +1

      Yes.. edit it.. windows 7 has no new option

    • @chief9482
      @chief9482 2 года назад +1

      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 ?

    • @EverythingComputerized
      @EverythingComputerized  2 года назад

      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!

  • @omkarkulkarni8680
    @omkarkulkarni8680 Год назад +1

    bro, I need to do competitive prog. so what modifications i need to do kindly tell...

    • @EverythingComputerized
      @EverythingComputerized  Год назад

      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..

    • @omkarkulkarni8680
      @omkarkulkarni8680 Год назад +1

      @@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

    • @omkarkulkarni8680
      @omkarkulkarni8680 Год назад +1

      *test cases

    • @EverythingComputerized
      @EverythingComputerized  Год назад +1

      Just do a google search.. I havent tried that yet though.. it must be done using file handling

    • @omkarkulkarni8680
      @omkarkulkarni8680 Год назад +1

      @@EverythingComputerized kk thanks

  • @sanikamandale639
    @sanikamandale639 Год назад +1

    C programs ke liye bhi work krega