How to run C++ Program in Visual studio code tutorial | Download and Setup C++ in VS Code 2024

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

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

  • @ryugamine00
    @ryugamine00 10 месяцев назад +12

    After 2 days of so many different tutorials this one was the one that worked with no errors or anything of the sort, thanks man I appreciate your work here

  • @ghigopigo8317
    @ghigopigo8317 Год назад +22

    After hours of getting weird compiler related errors I uninstalled everythig and started from scratch with this tutorial and now it works. Thank you very much!

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

      Great to hear! Welcome

    • @kenken505
      @kenken505 10 месяцев назад

      how do you delete stuff???

    • @unitedtoptech6288
      @unitedtoptech6288  10 месяцев назад

      Which stuff?

    • @REJIVINCENTPJ-om2xt
      @REJIVINCENTPJ-om2xt 9 месяцев назад

      ​@@kenken505 search in you tube itself how to delete mingw fully

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      you can just go to control panel then programs in it and right click mingw and uninstall

  • @_Q_A_
    @_Q_A_ 9 месяцев назад +1

    Thanks so much pro i was suffering because none of any tutorials on the internet is working for me but your tutorial is the only one working and you are straight to the point and making it easy thank you so much bro

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

    Thank you! The first tutorial after which I actually didn't receive compiler errors and managed to run the C++ code successfully.

  • @matidzek1227
    @matidzek1227 8 месяцев назад

    First guide that worked for me, thank you a lot!!! Saving my life for CS class

  • @Shashikant-ig8fy
    @Shashikant-ig8fy 8 месяцев назад +2

    thank for this much helpful video
    With ur help i am able to run my first c++ program 😇😇

  • @Mr.Harish1203
    @Mr.Harish1203 10 месяцев назад

    I was searched about it a lot of times, I wasted lot of times but you shown amazing way , congratulations

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

    Straight to the point and clear! Your tutorial was so much more helpful than all the other articles I tried following. Thank you so much!

  • @Ultimate_Xenon
    @Ultimate_Xenon 8 месяцев назад

    Very veey helpful sir, finally got my first program output thanks to you

  • @mikanynatsume5037
    @mikanynatsume5037 5 месяцев назад

    After 4 hours I finally found a solution that works! thanks!

  • @EXEOP-lo5yl
    @EXEOP-lo5yl 4 месяца назад

    Thank you so much am struggling to download like this from an whole week.. Thanks a lot buddy

  • @Ankit2940
    @Ankit2940 7 месяцев назад +2

    I saw tons of videos to run c++ but the only problem is the includepath everytime it shows a error to update your includepath.so please make a video .how to update includepath😢😢

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

      I didn't get that error when I did this but I have already done a video on that

  • @invent4.0
    @invent4.0 10 месяцев назад

    this video was so good now c++ is working for me

  • @shavebunny
    @shavebunny 9 месяцев назад

    Ty, works perfectly. I thought it was some problem in VScode

  • @KallaguntaAmrutha
    @KallaguntaAmrutha 2 месяца назад

    Thank you so much, it is the best video with good explanation

  • @AdityaSingh-vg1hl
    @AdityaSingh-vg1hl 7 месяцев назад +1

    Bhaiya i had a problem while running the program it says
    Program 'a.exe' failed to run: unknown errror (0×fffffffe) At line:1 char:1
    +Category info : resourcesUnvailable: (:) [ ], Application failed exception .
    Everything point in your video i follow very carefully still i got this i am trying to run my first freaking program from the past 5 days with errors

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

      do you have antivirus on? try turning it off and run the program

  • @nooratal3739
    @nooratal3739 3 месяца назад +1

    Thankyou

  • @مختاريليليا
    @مختاريليليا 10 месяцев назад

    really thanx I can't believe
    it's working !!

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

    Greatest video on this topic i have ever seen❤

  • @digitalcoding4271
    @digitalcoding4271 10 месяцев назад

    thank you so much tomorrow is my submission n i have run dsa code in c++

  • @bobbypoddar-kr5id
    @bobbypoddar-kr5id Год назад

    ❤thank you bhai mai 3,4 din se preshan tha isko lekar

  • @ananyasiingh21
    @ananyasiingh21 10 месяцев назад

    Best ever tutorial ❤

  • @stingray1342
    @stingray1342 10 месяцев назад

    Thank you for precise tutorial bro!

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

    Extremely helpful and informative video. Thank you very much

  • @JuanCarlosMendozaCastillo-y2x
    @JuanCarlosMendozaCastillo-y2x 11 месяцев назад

    Thanks dude, your explanations are great

  • @msg1956
    @msg1956 10 месяцев назад

    Excellent..!

  • @VantomChannel
    @VantomChannel 11 месяцев назад

    that first "Hi" caught me off guards.. sheesh xD.. Great job though

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

    Thankyou this tutorial is very helpful and easy 👍🏻♥️

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

    Its simple and clear, Thank you very much!!!

  • @emilianocandelaria3322
    @emilianocandelaria3322 11 месяцев назад

    Im rlly thankfull 4 ur video

  • @shaikyunus241
    @shaikyunus241 10 месяцев назад +1

    For me when i was downloading c/c++ extensions in vs code it says download did not complete check the log and try to download manually.not only c/c++ but i am not able to install any extension in my vs code

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

    thank you for keeping it simple

  • @jeevankurian9148
    @jeevankurian9148 11 месяцев назад

    So much helpful, was getting lot of compiler errors

  • @ngawangtsetan1637
    @ngawangtsetan1637 7 месяцев назад

    Very helpful,

  • @aayansethi3577
    @aayansethi3577 4 месяца назад

    Best tutorial!!!

  • @Ethan_Mero_A7V
    @Ethan_Mero_A7V 11 месяцев назад +1

    On that command promt
    Which folder path are we looking for? (Got error)

  • @PayalPatidar-w4c
    @PayalPatidar-w4c 9 месяцев назад

    Thankyou so much sir 😊😊 it's working 👍👍👍

  • @mannatkumar294
    @mannatkumar294 11 месяцев назад +1

    One thing I have to say i tried so many times but I can't make it possible after watching your video in first try it is done.

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

    finally i have done the insulation :>> thank you bro :3

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

    You're the goat, thank you!

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

    I am getting an error in output
    It is showing unable to resolve configuration with compilerpath "C:\users\HP\Desktop\VSCode-win-x64-1.82.2\c++
    ame.cpp". Using "C: \MinGW\bin\gcc.exe" instead.

  • @hharpit4423
    @hharpit4423 9 месяцев назад

    Well explained

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

    first code ran but when i turn off the vs code then turn on again it doesnt run. what sould i do help pls

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

    thanks you sir.

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

    Thank you so much sir

  • @adityagaur3206
    @adityagaur3206 9 месяцев назад

    thanks man..✌ you are real life saver:)

  • @Rihabzz.
    @Rihabzz. 10 месяцев назад

    on point

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

    Finally got C++ up and running now, took almost 2 days LOL !!

  • @brice1841
    @brice1841 11 месяцев назад

    A Big Thanks!

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

    Thank you broski

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

    hi thanks for the video,
    After downloading everything i try to compile the code, but i keep getting this error after the command ./a:
    Program 'a.exe' failed to run: Unknown error
    (0xfffffffe)At line:1 char:1
    + ./a
    + ~~~.
    At line:1 char:1
    + ./a
    + ~~~
    + CategoryInfo : ResourceUnavailable:
    (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed
    may i knwo how to solve this issue. Also when i downloaded i have this "task.json" that keeps poping up. Do I have to do anything about it? Thanks in advance

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

      Can you try running using code runner extension?

    • @nainasingh9900
      @nainasingh9900 11 месяцев назад

      @@unitedtoptech6288 I am also having problem in it and it is not running even with code runner.

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      Do you get any error when running with code runner?

  • @nikhil9976
    @nikhil9976 10 месяцев назад

    Thank you

  • @FORTHEGAME-c1n
    @FORTHEGAME-c1n Год назад

    Thank you Very much

  • @lsgallery09
    @lsgallery09 9 месяцев назад

    thanks a lot bro ❤

  • @aryawahyu8972
    @aryawahyu8972 9 месяцев назад

    mate i’ve problems on applying changes on those mingw, i already checkedlist everything exc fortrun, and when i applied the programs just running without finished until there’s some eror notification popped up. i also installed it on D Files. can you help me mate please? Thankyou

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      can you check the path where mingw is installed ? if not try reinstalling it once again

  • @rakshithashettigar9160
    @rakshithashettigar9160 9 месяцев назад

    When I type g++ filename.cpp it is showing 'g++.exe: error: CreateProcess: No such file or directory' what is the mistake might be??

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      check if you are inside the right path in command prompt like that path should have the folder name in which your c++ file must be there

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

    thank you very much😊

  • @sayandh-cz6qo
    @sayandh-cz6qo 8 месяцев назад

    thanks for the help

  • @Pratiksha-lj2dr
    @Pratiksha-lj2dr 9 месяцев назад

    Thank you so much!

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

    Thank you soooo much❤️❤️❤️❤️❤️

  • @strawcherru
    @strawcherru 9 месяцев назад

    thank you very much

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

    Bro i am getting /a.out file operation isnt completed because the file contains virus and my anti virus software(mcafree) giving notification stopped a virus

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

      I guess you have some antivirus turned on, try turning it off and run

    • @santoshiquenim5026
      @santoshiquenim5026 10 месяцев назад

      @questforknowledge4887 did it work for u by turning anti-virus off?

    • @unitedtoptech6288
      @unitedtoptech6288  10 месяцев назад

      Yes bro !!

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

    Thank you for this

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

    I downloaded mingw from source forge as you said but then instead of exe, zip file got downloaded, now what can i do?

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

    what to do if vscode come out this
    "'g++' is not recognized as an internal or external command,
    operable program or batch file."
    in the terminal when type g++ (program name)

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

      okok it solved after i click the g++ at the search bar on the top (idk what it said what build)
      after all i made it it run successful ,thanks bro you have the easiest and straights froward tutorial

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

      glad it worked!! Welcome

  • @mahmoud.1307
    @mahmoud.1307 9 месяцев назад

    when i run it says this
    cl.exe build and debug is only usable when VS Code is run from the Developer Command Prompt for VS.

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      did you run using command or extension?

    • @mahmoud.1307
      @mahmoud.1307 9 месяцев назад

      I pressed on the run c/c++ file
      after installing the extensions in the video exactly like you@@unitedtoptech6288

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      I guess you are running debug , can you check if you have any drop down near run button? else try running with command

  • @FellowHindu
    @FellowHindu 7 месяцев назад

    Sir I have a problem
    It's showing program " a.exe " failed to run: unknown error (0xfffffffe) at line 1 char 1
    And more, what should I do please help

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

      Do you have any anti virus on? also please check your code

    • @FellowHindu
      @FellowHindu 7 месяцев назад

      ​@@unitedtoptech6288 yes it is on

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

      Try running after turning it off

    • @FellowHindu
      @FellowHindu 7 месяцев назад

      ​@@unitedtoptech6288It worked thank you sir

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

      welcome sir!!

  • @suman9226
    @suman9226 10 месяцев назад

    it's showing me this when i run the code :- (The system cannot execute the specified program)

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

    My error said undefined reference to 'winmain@16 plss help me sos

  • @nitinsingh6913
    @nitinsingh6913 2 месяца назад

    Tysm man❤

  • @manjureddy5475
    @manjureddy5475 3 месяца назад

    Thank you

  • @AtmikDubey-e7r
    @AtmikDubey-e7r 6 месяцев назад

    Thanku it worked😀

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

    And there is one more problem in the terminal process it is coming up like a notification at the bottom right showing
    "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
    "terminated with exit code: 2.

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

      when do you get this error?

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

      @@unitedtoptech6288 when I am running the program in my terminal

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

      Try running with code runner that play button thing

  • @Ayazkhan-cr7wv
    @Ayazkhan-cr7wv 8 месяцев назад

    Tysm sir ❤️

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

    The download of minGW won't start i dunno what's the problem

  • @Ch_abdullah00
    @Ch_abdullah00 3 месяца назад

    Bro when i run the code it is saying that. In red . “Your file has two problem”

    • @unitedtoptech6288
      @unitedtoptech6288  3 месяца назад

      Can you paste the exact same error?

    • @Ch_abdullah00
      @Ch_abdullah00 3 месяца назад

      @@unitedtoptech6288. Bro it is saying. No such a file oe directory

    • @unitedtoptech6288
      @unitedtoptech6288  3 месяца назад

      Check the path in terminal, use cd command

  • @aishwarya12731
    @aishwarya12731 11 месяцев назад

    I'm getting g++ is not recognised as an internal or external command what to do plss help me sir

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      Did you add compiler path in environment variable?

    • @aishwarya12731
      @aishwarya12731 11 месяцев назад

      yes i did it@@unitedtoptech6288

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      So is it working now?

    • @aishwarya12731
      @aishwarya12731 11 месяцев назад

      no its not what should i do any solution
      @@unitedtoptech6288

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      Try checking the path that you have added or try running using code runner extension way

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

    bro how to download other pakages like GTK and others??

  • @استماعالقراءنالكريم
    @استماعالقراءنالكريم 3 месяца назад

    thanks its works

  • @rudranshsharma114
    @rudranshsharma114 29 дней назад

    Bro after writing g++ newpro.cpp a.exe file didn't generate please helppppp

    • @unitedtoptech6288
      @unitedtoptech6288  29 дней назад

      Do you get any errors?

    • @rudranshsharma114
      @rudranshsharma114 29 дней назад

      @@unitedtoptech6288 later finds out it generates by crt+s then run cod but every time after writing code i need to do save it then run code to display new code why is it though

    • @unitedtoptech6288
      @unitedtoptech6288  28 дней назад

      So that the new code gets updated and it recompiles the new changes

  • @hemrajjadhav2723
    @hemrajjadhav2723 6 месяцев назад +1

    Yunterrrr
    😂😂😂😂😂😂👍👍👍👍

  • @emiraziz9290
    @emiraziz9290 9 месяцев назад

    Program 'test.exe' failed to run: Access is deniedAt line:1 char:68
    + ... \Coding\C++\" ; if ($?) { g++ test.cpp -o test } ; if ($?) { .\test }
    + ~~~~~~.
    At line:1 char:68
    + ... \Coding\C++\" ; if ($?) { g++ test.cpp -o test } ; if ($?) { .\test }
    + ~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

    • @unitedtoptech6288
      @unitedtoptech6288  9 месяцев назад

      try changing the filename or check if you have anti virus on, turn it off

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

    I wish this was the first tutorial i watched before setting up. But, i have a problem, at 9:09 it keeps telling me that "g++" is not recognized

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

      Can you please check if you have added the correct path in environment variable?

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

      Yes.
      I did that

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

      In the terminal, it's saying "undefined reference to 'WinMain@16'"
      "collect2.exe: error: Id returned 1 exit status

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

      go to settings , search for code runner save all files before run , check it and restart vscode and try running it

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

      @@unitedtoptech6288 I was able to get it to work.
      I have no idea how, but it works, so I won't disturb it.
      Can you help me out now?
      I want to run a regular C++ code, and it's running, but when I want to run a code that deals with me taking inputs, when I want to take the inputs, it hangs, and when I want to re-run, it tells me "code is already running", but then I can't take inputs. What could be the problem?

  • @SigmaMindset-hw3ql
    @SigmaMindset-hw3ql Год назад

    Thanks man

  • @akhiljithk7173
    @akhiljithk7173 10 месяцев назад

    i got this error, how to solve : cd "d:\C programs\" && g++ test.cpp -o test && "d:\C programs\"test
    bash: cd: too many arguments

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

    tnx bro😇

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

    When I run the code I get the error as cout was not declared in this scope.Can you please explain why

  • @dante-p2h7e
    @dante-p2h7e 10 месяцев назад

    im getting errors for the #include

  • @lilaoniram-zn2fm
    @lilaoniram-zn2fm Год назад

    When i enter the g++ programname.cpp it says error: ID returned 1 exit status

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

      Do you get any errors when you are running with code runner extension?

    • @lilaoniram-zn2fm
      @lilaoniram-zn2fm Год назад

      @@unitedtoptech6288 it's alright now, it's just I keep debugging before running the code so that it saves before I run the code

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

      ohh glad it worked!! who is the kpop idol on your profile pic?

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

    I did every thing the same as you did but when i run my code it says:
    [Done] exit with code=1😑

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

      Restart vscode, save your file and run it again

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

      @unitedtoptech6288 i deleted everything and did the whole process again, but I get the same result🥲

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

      @unitedtoptech6288 you know ,in that part, which you enter ./a and then program executes
      when I do it, it shows this error: ./a : The term './a' is not recognized as the name of cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
      At line:1 char 1
      + ./a
      + ~~~
      + CategoryInfo :Object not found: (./a:string) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
      🤦🏻‍♂️😑

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

      Can you use code runner extension? you won't face any errors

  • @sike85
    @sike85 10 месяцев назад

    goat

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

    Hey bro i get a error in cmd promt like (g++ is not recognised as an internal or external command , operable program or batch file)

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

      Check if you have added the right path of mingw in environment variable

    • @Akhila-wz4nv
      @Akhila-wz4nv Год назад

      I am also having same problem.Please help me in how to solve this issue,if you solved then please explain the process

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

      You need to add the env variable path? It worked for me I did the same

  • @blackbird436
    @blackbird436 11 месяцев назад

    undefined reference to WinMain@16.
    what a solution?

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      Go to settings and search for code runner save and check it and restart and run vscode

    • @blackbird436
      @blackbird436 11 месяцев назад

      @@unitedtoptech6288 thx , problem solved.

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      Cool

  • @begyshegy
    @begyshegy 3 месяца назад

    how to change the path

  • @BirukT.Alehegn
    @BirukT.Alehegn Год назад

    Why the Downloading package takes a long time🫤

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

    I have done the insulation..
    Thank you bro ❤
    But i am getting error in output and undefined reference in terminal

  • @blahblu8036
    @blahblu8036 11 месяцев назад

    i am getting error after writing ./a

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      try running using code runner extension

    • @sv0mega125
      @sv0mega125 4 месяца назад

      ​@@unitedtoptech6288same error not even running in runner

    • @sv0mega125
      @sv0mega125 4 месяца назад

      3:22 my laptop showing only 5 option

    • @sv0mega125
      @sv0mega125 4 месяца назад

      how to fix it?

    • @unitedtoptech6288
      @unitedtoptech6288  4 месяца назад

      can you paste the whole error?

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

    sir it is showing ur code has virus

  • @ngawangtsetan1637
    @ngawangtsetan1637 9 месяцев назад

    The best 🫡

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

    After hours of getting weird compiler related errors I uninstalled everythig and started from scratch with this tutorial and now it works. Thank you very much!