How to install C/C++ in Visual Studio Code on Windows 10 [2022 Update] using MinGW w64 GNU Compiler

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 405

  • @somedudenamedanthony
    @somedudenamedanthony 3 роки тому +36

    (Please highlight or pin this*)
    0:15 Installing Visual Studio Code
    4:04 Installing MinGW Compiler
    9:43 Testing/Using C/C++ in Visual Studio Code
    15:43 Outro

    • @GeekyScript
      @GeekyScript  3 роки тому +4

      Definitely 😊 thanks a lot for your precious comments ❤️

    • @Raj-mj2fx
      @Raj-mj2fx 3 роки тому +1

      @@GeekyScript how much time take for download packages..

  • @viswajithj788
    @viswajithj788 3 роки тому +49

    Installation of coding tools are always a nightmare, until you stumble upon that single tutorial in UA-cam that solves your specific error magically

    • @GeekyScript
      @GeekyScript  3 роки тому

      All the best ✌️

    • @viswajithj788
      @viswajithj788 3 роки тому

      @@GeekyScript Thanks 😉

    • @你好1
      @你好1 2 роки тому

      lol yeah i struggled a lot for that 😂

    • @edwardmacnab354
      @edwardmacnab354 Рік тому

      Hardly anyone on youtube really knows exactly what they are doing---or even cares frankly , as long as it works for the algorithm , The real experts are the worst because they are just entertainers and they know that the pile of actual knowledge they could give you would just confuse you anyway, so they just shovel you the basics on a silver platter. That's why you have to sift through 20 videos on the same subject to find a real solution to any specific problem.

  • @yinyangdynasty
    @yinyangdynasty 3 роки тому +23

    I was banging my head on my keyboard for two hours until I saw your video. I thank you.

    • @GeekyScript
      @GeekyScript  3 роки тому +2

      Happy to help 😊 stay connected 👍😊

  • @famousguy7829
    @famousguy7829 3 роки тому +21

    Sir, you saved my life!!!💯💯💯
    For months I was unable to run C programs on VS Code.
    Thank you so much for this tutorial!

  • @robo-
    @robo- 2 роки тому +1

    i don't usually comment on tutorials, but this is the only one that worked for me after a month of trying. thanks so much!

  • @be_my_valentine302
    @be_my_valentine302 2 роки тому +4

    Thanks man, you've helped me a lot. I've been trying to install and configure Visual Studio for a very long time but none of the tutorials I found helped me, but this one solved all of my problems. Thank you very much again!!! :)

  • @chandnimirpuri1875
    @chandnimirpuri1875 2 роки тому +1

    This video actually helped me a lot, after 2 days of suffering, this video finally solved my VS code, thank you!

  • @aryanagrawal2933
    @aryanagrawal2933 2 роки тому +1

    this is the best video for "Rightly "installing the visual studio code and mingw compiler

  • @mh-tw4kx
    @mh-tw4kx 2 роки тому +1

    I can't believe this stuff is free on youtube, thank you so much !!!!

  • @darshann812
    @darshann812 3 роки тому +5

    I was not able to solve this problem from previous two weeks and I solved it after watching your video. Thank you so much ❤️🙏

    • @GeekyScript
      @GeekyScript  3 роки тому

      Happy to help.. stay connected :)

  • @GaSkia117
    @GaSkia117 2 роки тому +2

    Thank you so much for this tutorial I've been struggling for days

  • @anishkaverma7311
    @anishkaverma7311 3 роки тому +3

    i spent 5-6 hours with different errors, finally its working! thankyou so much

    • @GeekyScript
      @GeekyScript  3 роки тому

      Anytime 😊 all the best ✌️

    • @rajratan6526
      @rajratan6526 3 роки тому

      I am too getting lot of errors . How can we fix this? Is it important?

    • @kavyakavya9997
      @kavyakavya9997 3 роки тому

      Even i cant download it

  • @kumkummittal3086
    @kumkummittal3086 2 роки тому +1

    But after click on edit, I didn't get "edit environment variables". What should I do?

  • @GeekyScript
    @GeekyScript  3 роки тому +8

    Did this tutorial help you to install C/C++ in Visual Studio Code?
    Comment Now!! and Let me know your opinion... And Please SUBSCRIBE for more!
    Also, you can Support my work through UA-cam Thanks!

  • @krutarthzala2866
    @krutarthzala2866 3 роки тому +3

    Thank you sir. Before I watched your video i was confused.After watching your video all doubts are clear and success fully install mingw compiler 👏🏻👏🏻👏🏻👍🏻👍🏻

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      Happy to help friend 😊 really motivates me this type of comments 😊 all the best for the future ✌️

    • @krutarthzala2866
      @krutarthzala2866 3 роки тому +1

      @@GeekyScript Thank you sir🙏🏻

  • @shrutisahu806
    @shrutisahu806 3 роки тому +2

    Your video is useful for me ... finally I installed minGW and gcc compiler
    Thank you & have a great day 😇

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      Glad it helped! Have a great day too!

  • @aasheesh_tripathi
    @aasheesh_tripathi 3 роки тому +2

    Thankyou sir
    Atleast 2 days of suffering , finally got solution from you. Great thanks💞💞

  • @amishas8007
    @amishas8007 2 роки тому +1

    where is this command prompt i am not able to see it?

  • @mohammadjilan811
    @mohammadjilan811 2 роки тому +1

    Thank you so much! This is literally like my 5th video and the only one that works.

  • @AnkitKumar-xw9yi
    @AnkitKumar-xw9yi 2 роки тому +2

    Your video is very helpful sir
    Thank you so much

  • @jessicaralhan9624
    @jessicaralhan9624 2 роки тому +2

    Sir I did everything just the way you did but when you said to go in the new terminal and we had to write cd documents and find the directory then it is not working.
    I don't know why it is not working. I saved the program the same way you did.

  • @tarunsinghshekhawat9145
    @tarunsinghshekhawat9145 3 роки тому +3

    ultimate i was about to swtich to dev or turbo you saved the life

  • @garvchouhan2169
    @garvchouhan2169 2 роки тому

    Thanks a lot sirrrrr , I wa s trying to resolve this issue since a very long time and finally I watched your video and my VScode issue got resolved

  • @jacx_ai
    @jacx_ai 3 роки тому +2

    I'm frustrated already,when I download mingw it comes as a compressed file and there's on installation package after extracting it

  • @dibyenduroy879
    @dibyenduroy879 3 роки тому +2

    Problem solved....thnks ❤️ really was searching for my issue....

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      Happy to help friend 😊 stay connected 👍😊

  • @sakshiojha6578
    @sakshiojha6578 2 роки тому

    I'm facing an issue with installing... When I install MinGW w64 it's installed in a zip file and when I extract it I did not get the bin file😕

  • @alphaworld4988
    @alphaworld4988 2 роки тому +1

    Just thanks man. Although it took time but finally I did it with the help of this amazing video.

  • @812atharva
    @812atharva 3 роки тому +5

    Thank you so much , It was so helpful and you explained it with so much of patience.

  • @mohammadfaisal3649
    @mohammadfaisal3649 3 роки тому +4

    Hello sir. When i write cd documents in the terminal, it shows no path found .please help me what to do? You are amazing by the way

    • @nurbanu1283
      @nurbanu1283 2 роки тому +1

      Before writing cd Documents, are you sure your Documents folder is in This PC or on Desktop? Maybe that is why your computer can not find the path. First make sure that your documents folder is in "This PC". if it is on Desktop, then write cd Desktop first. Also, Documents' first letter should be capital. not "cd documents". It is "cd Documents". Hope that helps.

    • @jvplaster
      @jvplaster 2 роки тому

      @@nurbanu1283 I have Documents in "This PC" but my cd isn't yellow as shown in the video and for gcc prog1.c it says the term "gcc" is not recognised, even tho in my command prompt i can see the information for gcc

    • @mohammadfaisal3649
      @mohammadfaisal3649 2 роки тому

      @@nurbanu1283 thanks sir, it worked

    • @nurbanu1283
      @nurbanu1283 2 роки тому

      @@mohammadfaisal3649 I am a girl but its ok lol You're welcome

  • @ROSE-di5ed
    @ROSE-di5ed 3 роки тому +2

    Sir iam getting error on the terminal after I entered gcc prog1.c what can I do

  • @nihardas4948
    @nihardas4948 2 роки тому

    still showing problem at the time of compiling. gcc not recognising.but at command prompt recognising g++ --version.

  • @nikitoscheater4296
    @nikitoscheater4296 2 роки тому

    мужик спасибо ты мне помог, 3 дня страдала до этого прекрасного видео

  • @dakshsoni165
    @dakshsoni165 3 роки тому +2

    Love you sir what a wonderful work done by you sir ♥️♥️

    • @GeekyScript
      @GeekyScript  3 роки тому

      So nice of you.. Glad it was helpful! :)

  • @sourav746
    @sourav746 2 роки тому

    It is showing me the term 'gcc' is not recognised as the name of a cmdlet, function,script file, or operable program. ...Plzz help me

  • @daveshamess7348
    @daveshamess7348 2 роки тому +1

    Thank you for this amazing video!!!

  • @ushasinha4382
    @ushasinha4382 4 місяці тому

    My c code Isn't converting to exe..
    It is showing" file not recognised.
    File format not recognised. "
    Plz help😢

  • @rajratan6526
    @rajratan6526 3 роки тому +1

    I am getting too many errors saying (package failed to installed) .how can i fix this?

  • @adisingh9341
    @adisingh9341 3 роки тому +3

    Thanks a lot bro . It was extremely helpful.

    • @GeekyScript
      @GeekyScript  3 роки тому

      Anytime bro😊 stay connected 👍

  • @makum6840
    @makum6840 3 роки тому +2

    very informative video indeed.
    just a side question, ./a stands for anything or its just a command for executing the compiled program ?

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      u will see a executable file generated after compilation. That file's name is "a". So "./" means from that very same directory we are running the file called "a"

    • @makum6840
      @makum6840 3 роки тому +1

      @@GeekyScript thanks for the clear explanation, ur vids are very informative !!!

  • @playremix8096
    @playremix8096 2 роки тому

    When I type with gcc c_program it says c_program file not recognized
    Collect2.exe error 1d returned 1 exit status

  • @shilpapalgotajain9984
    @shilpapalgotajain9984 3 роки тому

    In comand prompt its showing gcc version but in vs code its showing that gcc is not recognized as an internal and external comand...what to do..plz help

  • @ronnygamerz88
    @ronnygamerz88 3 роки тому +2

    Bhai mera naya laptop hai and maine vsd se direct page p gaya downlaod krne ko but support nhi kr rha hai 64 bit ka os mera kuch bhi support nhi kr rha hai kya kru..

    • @GeekyScript
      @GeekyScript  3 роки тому +3

      Description mein link hai. O use karke dekho

  • @bhuvishathakur9613
    @bhuvishathakur9613 3 роки тому +2

    12:15___after that step it is showing that gcc not recognised(in my system)
    Please help 🙏

  • @webergamedev
    @webergamedev 2 роки тому

    bohot madad kardiye bhai aapne 🤝🏻👌🏻

  • @gulabchandgupta5486
    @gulabchandgupta5486 3 роки тому +2

    I was very frustrated regarding mingw but u clr the all my Doubt tysm ❤️❤️❤️🙏🙏🙏

    • @GeekyScript
      @GeekyScript  3 роки тому

      Happy to help 😊 stay connected 👍😊

    • @ritikchetri24
      @ritikchetri24 3 роки тому

      I don't get it after installing the mingw the zip option comes then what I can do?

  • @roarfaster3608
    @roarfaster3608 2 роки тому

    Sir why there is hello world is't showing in output
    It is showing is only terminal and process is leghty how to fast compile and run

  • @unilegendprashant9953
    @unilegendprashant9953 2 роки тому +1

    This video is very helpful for me
    Thank you

  • @swathisandamoni497
    @swathisandamoni497 3 роки тому +1

    I got here 7:40 'g++' is not recognised as an internal or external..........

    • @GeekyScript
      @GeekyScript  3 роки тому

      you have some issue in setting environment variable.. do what watch my video carefully.

  • @sanketgaikwad7270
    @sanketgaikwad7270 2 роки тому

    Sir in last step i got a error of
    ( Id returned 1 exit status ) ? 15:02

  • @harshparekh16
    @harshparekh16 2 роки тому

    Thank you so much man. Can't thank you enough buddy. Cheers!

  • @vasishtachowdary4015
    @vasishtachowdary4015 2 роки тому +1

    thanks bro
    this video helped me a lot

  • @reallygoodstuff5110
    @reallygoodstuff5110 2 роки тому

    Sir g visual studio main link krny ka kam ni ho ra.. Jahan sy file save ki r gcc write kiya Udr sy ni ho ra... Plz guid kr dain

  • @juice9226
    @juice9226 2 роки тому +1

    I am confused, what is the purpose of downloading this verses just using the C#, C+ or C++ extension that visual studio code already has available?
    -ME student, so I am no expert on this matter.

    • @GeekyScript
      @GeekyScript  2 роки тому

      No worries.. Thanks for asking.. Okay, so the purpose of downloading is its basically a compiler. This compiler will help computer to understand that particular programming language.. here it is c/c++. And all those extensions will enhance your programming experience.. Its related to User Experience... Hope this helps! All the best.

  • @playremix8096
    @playremix8096 2 роки тому

    When I type the cd c_program it always says does not exist

  • @andreichivu8491
    @andreichivu8491 2 роки тому

    Someone know why when i m in terminal and i enter in documents and then type cd c_programs it shows me an error with red like: Cannot find path 'C:\Users\Legion\Documents\c_programs' because it does not
    exist. Please help me if someone know why.

  • @karanchauhan769
    @karanchauhan769 2 роки тому

    When I write GCC prog1.c file name in new terminal of vs code it doesn't show output what should I do

  • @International-Love
    @International-Love 3 роки тому +1

    THANQ, It's really helpful!! ✌🏻

  • @aljondancel5991
    @aljondancel5991 3 роки тому +1

    When i type ./a in command. not work. "is not recognized"

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      Then goto your directory where you have saved your file.. there you will find a exe file generated. Try that name instead of a. It will work

  • @vlavion.y3361
    @vlavion.y3361 3 роки тому +2

    Thank you , it is helpful :)

  • @aidenbrent2815
    @aidenbrent2815 3 роки тому +1

    Compiled the c script just fine but the c++ code gives me an error:
    “Undefined reference to ‘WinMain@16’”

    • @GeekyScript
      @GeekyScript  3 роки тому

      check the solution here: stackoverflow.com/questions/20020399/undefined-reference-to-winmain16-codeblocks

    • @illuminatidaylight8566
      @illuminatidaylight8566 3 роки тому +1

      @@GeekyScript in terminal after I type gcc prob1.c I am getting error plss help me

  • @1BitHunter
    @1BitHunter 2 роки тому

    7:02 Sir in my command prompt it is showing C: \Users\Asus> What can i do😭

    • @GeekyScript
      @GeekyScript  2 роки тому

      no issues.. just go ahead

    • @1BitHunter
      @1BitHunter 2 роки тому

      @@GeekyScript ok sir✌🏻

  • @danielmatthew1726
    @danielmatthew1726 2 роки тому

    how can i compile and run in it cmd like using codeblocks?

  • @redakazitani6622
    @redakazitani6622 2 роки тому +1

    You're a life saver, my friend. May the grace of the Lord be upon you.
    A future scholarship recipient of a Master's Computer Science degree.

    • @GeekyScript
      @GeekyScript  2 роки тому +1

      You're very welcome! All the future

    • @GeekyScript
      @GeekyScript  2 роки тому

      @@ytuser9876 have a video on Java too

    • @GeekyScript
      @GeekyScript  2 роки тому

      @@ytuser9876 yes that is also possible. we need a runner plugin. I will make a video about it soon then.

  • @rajpal5420
    @rajpal5420 3 роки тому

    Not all changes were applied successfully please refer to the detail below..... Plz help

  • @rajprakashparhi5128
    @rajprakashparhi5128 3 роки тому

    Sir mingw 32 or 64 ke bich me differences kya hai

  • @aryajha4428
    @aryajha4428 3 роки тому

    9:13 I am still getting 'g++ is jot recognised.....'
    Anybody has any idea what to do next?

  • @nandanipathak1745
    @nandanipathak1745 3 роки тому

    I have faccing so much problem installation of mingw I have do all step which is telling by you but when I click on apply change my pc has do only down process from half an hour no any option of extract what I do I don't think about anything.please somebody help .e

  • @amritamishra2003
    @amritamishra2003 3 роки тому

    Why I'm getting error while downloading?? Plz help me @Greek script

  • @ullass8323
    @ullass8323 2 роки тому +2

    thank you

  • @sir_savage5240
    @sir_savage5240 2 роки тому

    everything I get works up until the steps of compiling, when you do g++ and the file name, because then it gives me
    g++ : The term 'g++' is not recognized as the name of a 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
    + g++ main.cpp
    + ~~~
    + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException. Is there a way to fix this?

  • @itsthesurya3387
    @itsthesurya3387 3 роки тому

    Sir
    Package failed to install
    How to fix it

  • @rajanusakoyal3244
    @rajanusakoyal3244 3 роки тому

    Sir comment prompt is not showing in taskbar

  • @Zx_editz07shorts
    @Zx_editz07shorts 3 роки тому +4

    Thank you so much I am a 10 years old kid only. I like coding so much that one time my terminal was not working so I cried alot then I saw this video thank you too much.

    • @GeekyScript
      @GeekyScript  3 роки тому

      Happy to help friend 😊 wish you all the very best ✌️. Go ahead kid. God bless you 🙏

    • @nandanipathak1745
      @nandanipathak1745 3 роки тому

      When I have extract my all file and in command prompt gcc is not suppoort what I do please help me

  • @birajdas9688
    @birajdas9688 2 роки тому

    Why my gcc is not recognized? Please help me someone

  • @ritikchetri24
    @ritikchetri24 3 роки тому

    After installing the mingw then zip option comes then what I can do to do solve the problem?

  • @gyoncode9290
    @gyoncode9290 2 роки тому

    when i type the last instruction ./a turn back error . can anyone help

  • @siddharthsuryawanshi8294
    @siddharthsuryawanshi8294 3 роки тому +1

    Total installation me approx kitna MB data lag jayega ?

    • @GeekyScript
      @GeekyScript  3 роки тому

      around 200mb, i don't remember exactly.

  • @businessstudies9675
    @businessstudies9675 3 роки тому +1

    I am stuck because gcc prog1.c is showing error.

  • @radhika9226
    @radhika9226 3 роки тому

    7: 54 it is showing that g++ is not recognized as an internal or external command, operable program or batch file

  • @iakash017
    @iakash017 2 роки тому +1

    Very useful video..
    Thank you..

  • @7cs13
    @7cs13 Рік тому

    why can't i install system var?

  • @swagatashyamal5146
    @swagatashyamal5146 3 роки тому

    Hey how I run the program with out type gcc or /a. 🙄

  • @huzaifaahmad4834
    @huzaifaahmad4834 3 роки тому

    Can somone help. It is still showing this error:-
    "gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program."

  • @nujhatkazi3821
    @nujhatkazi3821 3 роки тому

    I am not able to download this as my laptop is not supporting this aap... Its telling try out with another publisher...what to do now..😕

    • @GeekyScript
      @GeekyScript  3 роки тому

      Install this one: ua-cam.com/video/rzREmDSyzSU/v-deo.html

  • @reidainutilidade8743
    @reidainutilidade8743 2 роки тому

    Thank you for this video!

  • @sangitakumari845
    @sangitakumari845 3 роки тому

    Account kese batna he profile ke lite visual studio pe

  • @worldproducer567
    @worldproducer567 3 роки тому

    What is the size of MingW ?

  • @edwardmacnab354
    @edwardmacnab354 Рік тому

    if you only have one user you don't need to add the variable to the system path and on my computer you don't even have that option apparently because the new and edit buttons are locked out on the system part. You just add the variable to the user environment path.

  • @mdlatif2835
    @mdlatif2835 3 роки тому +1

    It is very helpful. Thank You.

  • @gouravbaboria5358
    @gouravbaboria5358 3 роки тому

    mingw instalation k baad package install me error(download failed) aa rahi

  • @sajid6353
    @sajid6353 3 роки тому

    Bhai mera nhi ho raha what shoul I do

  • @ajaydama5255
    @ajaydama5255 3 роки тому

    Sir,
    This version of c:\mingw\bin\g++.exe is not compatible with the version of windows you're running. Check your computer's information and then contact the software publisher
    This is my problem can you help

    • @ajaydama5255
      @ajaydama5255 3 роки тому

      I tried different methods but no use
      Sir please help

  • @devangmanjramkar8393
    @devangmanjramkar8393 3 роки тому +3

    I am getting an error gcc: error: name of program: No such file or directory
    gcc: fatal error: no input files.
    Compilation terminated.
    What should I do?
    Please help.

    • @GeekyScript
      @GeekyScript  3 роки тому +4

      Whenever you see this type of error called "no such file or directory" always check your file location, check the directory where your command prompt is open.. is it matching with your file location? Check all this.

    • @devangmanjramkar8393
      @devangmanjramkar8393 3 роки тому +1

      @@GeekyScript Ok thanks

  • @dimplenasa8441
    @dimplenasa8441 3 роки тому

    Sir ,after doing new terminal in my pc it's showing "try new cross platform powershell"
    Pls help what to do next

  • @singhkr
    @singhkr 3 роки тому

    RUN BUTTON CAN BE ALSO USED AT LAST FOR EXECUTION OF POGRAMME
    IT'S SAVE TIME

  • @ardaa3516
    @ardaa3516 3 роки тому

    isn't using msvc easier?

  • @amanbheemaiah2011
    @amanbheemaiah2011 3 роки тому +2

    Helpful, Thank you :)

    • @GeekyScript
      @GeekyScript  3 роки тому +1

      Glad it helped! Stay connected :)

  • @ananyagunnusingh9788
    @ananyagunnusingh9788 3 роки тому +3

    thankyou very much:) i did it after 2 days ;(

  • @Nothing_502
    @Nothing_502 3 роки тому

    Kll ma honsla rkhi ea program likhn lga hello world but turbo c++ anni chla da aaj ma sochya vs code krna install but ee pta ni k blaa ea

  • @tontonzidane2015
    @tontonzidane2015 3 роки тому +1

    Thanks you. Super video