Installing MinGW to build C++ Code on Windows

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น •

  • @Goodguy949
    @Goodguy949 9 หลายเดือนก่อน +32

    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.

  • @tamalmazumder8476
    @tamalmazumder8476 หลายเดือนก่อน +13

    No unnecessery talk and straight to the point.....Thank you!!

  • @breaktask7132
    @breaktask7132 7 หลายเดือนก่อน +58

    For newbies, this is the "only video you need to kick start your journey"😁

    • @urmomlolgottem
      @urmomlolgottem 3 หลายเดือนก่อน

      thats not wot ur mom said

    • @kyurious17
      @kyurious17 3 หลายเดือนก่อน +3

      as a "newbie" i confirm this

  • @wribbit
    @wribbit 9 หลายเดือนก่อน +7

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

  • @benjamin-v2g9m
    @benjamin-v2g9m 10 หลายเดือนก่อน +49

    I loved the "after you have installed the installer.."

    • @RanMC9918
      @RanMC9918 7 หลายเดือนก่อน +14

      i like "click ok, and click ok, and click ok" 2:17

    • @mousesunset
      @mousesunset 3 หลายเดือนก่อน

      @@RanMC9918 "okay?"

  • @ChrisP872
    @ChrisP872 9 หลายเดือนก่อน +6

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

  • @AstralNomadd
    @AstralNomadd หลายเดือนก่อน +4

    This made my life easier! And everyone who's reading this "Please don't install MinGW by Source Forge, its trash!" (at least for me. it didn't work)

  • @acesgaming7017
    @acesgaming7017 9 หลายเดือนก่อน +16

    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.

    • @code
      @code  9 หลายเดือนก่อน +7

      Great to hear!

    • @DeveloperJishan
      @DeveloperJishan 4 หลายเดือนก่อน

      @@code make vs code more fast

  • @AhmedAbdullah-qf8ou
    @AhmedAbdullah-qf8ou 9 หลายเดือนก่อน +16

    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 ?

    • @tarik_hello
      @tarik_hello 9 หลายเดือนก่อน +2

      Please revisit the environment variable steps and if that doesn’t work try installing the compiler again

    • @pumpkin1409
      @pumpkin1409 3 หลายเดือนก่อน +2

      If anyone still has a problem with this one, make sure you choose "Edit environment variables for your ACCOUNT", not system.

    • @akjnr2218
      @akjnr2218 3 หลายเดือนก่อน

      @@pumpkin1409 where is that one please ?

    • @rishipahilajani9980
      @rishipahilajani9980 2 หลายเดือนก่อน

      @AhmedAbdullah-qf8ou same here

    • @shaikhybox
      @shaikhybox 2 หลายเดือนก่อน

      Anyone got this one right as I'm getting the same problem 😅

  • @aashirafiq5168
    @aashirafiq5168 7 หลายเดือนก่อน +1

    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 .

  • @seikharishuddin4577
    @seikharishuddin4577 9 หลายเดือนก่อน +6

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

  • @sadiqshaikh8715
    @sadiqshaikh8715 5 หลายเดือนก่อน

    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

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Glad this video could help you out!

  • @belenrb
    @belenrb หลายเดือนก่อน

    Thank you so much! I watched a few videos on this and none of them worked.
    This video was very easy to follow, and it worked perfectly! ❤

  • @SinisterStudyStream-we4rw
    @SinisterStudyStream-we4rw 10 หลายเดือนก่อน +4

    Thank you so much man. This video was incredibly helpful

  • @mateusguimaraes9131
    @mateusguimaraes9131 21 วันที่ผ่านมา

    This is a miracle, a video that you can find all info doing in real time

  • @sahilundirwade2825
    @sahilundirwade2825 7 หลายเดือนก่อน +1

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

  • @JayantTodmal
    @JayantTodmal หลายเดือนก่อน

    Your video has made it easier to start with vscode. Thank you so much man.

    • @code
      @code  หลายเดือนก่อน

      No problem! Glad you found it helpful!

    • @Astranomerfahad
      @Astranomerfahad 26 วันที่ผ่านมา

      @@code what about the people facing difficulties

  • @PrateekAgrawal-tv3og
    @PrateekAgrawal-tv3og 7 หลายเดือนก่อน

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

  • @kevinwilliams6070
    @kevinwilliams6070 10 วันที่ผ่านมา

    Thank you for making this simple and straight forward

  • @tarik_hello
    @tarik_hello ปีที่แล้ว +44

    Here is the command for installing MinGW in MSYS2 for anyone who missed it: pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain

    • @omnii630
      @omnii630 11 หลายเดือนก่อน +1

      Can't copy😢

    • @am99.99
      @am99.99 11 หลายเดือนก่อน +4

      @@omnii630 that's right bro, you need to select whole command and slip it to directly that position. you cannot paste there.

    • @moist5339
      @moist5339 11 หลายเดือนก่อน +10

      it doesn't work, it says the pacman command does not exist.

    • @anaghahr6405
      @anaghahr6405 7 หลายเดือนก่อน

      @@moist5339try running this command before that one -> “pacman -Syu”
      It worked for me

    • @ghaniyausmani5245
      @ghaniyausmani5245 6 หลายเดือนก่อน

      Yes what should we do now​@moist5339

  • @vikrantkale7515
    @vikrantkale7515 11 หลายเดือนก่อน +15

    The "Option of C/C++ :Select IntelliSense Configuration" and C related options although I have followed the steps you mentioned thoroughly.Can you please tell me any alteration or alternative step for Verification of Compiler Installation ?

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน

      If you are not seeing the compiler in the drop-down from the command, it is likely that you need to revisit the steps to correctly set your path environment variable. Make sure it is pointing to the proper “bin” folder

    • @enricoschievano621
      @enricoschievano621 11 หลายเดือนก่อน +1

      Try checking if you are in a Trusted window or in restricted mode, this works only in trusted window.

    • @ZeusDaBoy
      @ZeusDaBoy 10 หลายเดือนก่อน

      @@tarik_hello hey i have a doubt, i am putting the compiler in my local disk D drive for space management, and i put the path there, i also put the folder for vscode as if my project folder there but it isnt working? any help

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน +1

      @@ZeusDaBoy This is most likely not an issue with our extension but rather VS Code. If VS Code and your files do not reside on the same drive you will not be able to access your files. I would suggest you store compilers on your C Drive

    • @Kanak_Bodkhe
      @Kanak_Bodkhe 10 หลายเดือนก่อน

      try revisiting those steps dude, mine mistake was, i edited the path without choosing the account, so go on search and type edit variable for your account then follow those steps told in video on how to edit path variable, worked for me tbh

  • @yhanadvincula6516
    @yhanadvincula6516 3 หลายเดือนก่อน

    Thank you very much, just downloaded my very first step in coding

  • @daiakialv1580
    @daiakialv1580 6 หลายเดือนก่อน +3

    Dunno how but i managed to turn a 3:07 minutes video into a 20 minutes task. wish me luck guys, trying to learn by myself

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน +1

      You got this!

    • @Aiser77
      @Aiser77 3 หลายเดือนก่อน +1

      You got this champ
      Wish me luck too ❤

  • @pchandrahas
    @pchandrahas 10 หลายเดือนก่อน +10

    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?

    • @anushkaa_.7
      @anushkaa_.7 9 หลายเดือนก่อน

      Search edit environment in search bar... you'll get it

  • @mrobinson
    @mrobinson ปีที่แล้ว +8

    Thank you all SO much! I needed this!

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน +1

      Thank you for watching!

  • @NirAuris
    @NirAuris 10 หลายเดือนก่อน +8

    After I did this no matter what I did it showed "The preLaunchTask 'C/C++: g++.exe build active file' terminated with exit code -1", what do I do?

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน

      This sounds like a compilation issue and not an issue with compiler installation. Could you provide more context like the full error message and type of project you are building?

    • @tanusharma4467
      @tanusharma4467 10 หลายเดือนก่อน

      Same issue...when i try to run the code it says " The prelaunch Task 'C/C++:gcc.exe build active file' terminated with code -1.
      And the options to choose are "debug anyway" , "show errors" and "abort" .

    • @NirAuris
      @NirAuris 10 หลายเดือนก่อน

      @@tarik_hello That is the full error message. And I doubt it is the projects fault. I made a hello world project and got the same problem

    • @nejcjamsek9806
      @nejcjamsek9806 8 หลายเดือนก่อน

      I have the same problem, did you find the solution mby?

    • @tarik_hello
      @tarik_hello 8 หลายเดือนก่อน

      @@nejcjamsek9806 make sure that if you are running a c++ file, you are using the g++ compiler, not gcc

  • @yuktabhardwaj2210
    @yuktabhardwaj2210 8 หลายเดือนก่อน +2

    Hey! I followed all the steps exactly shown here and everything was fine until the last step where I couldn't find this step @2:50... Please help

    • @tarik_hello
      @tarik_hello 8 หลายเดือนก่อน

      Please make sure you have the extension installed and you are looking at an active .cpp file

  • @vaibhavsingh6339
    @vaibhavsingh6339 6 หลายเดือนก่อน +1

    this helped me in a sticky situation. thanks man

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Glad it helped you!

  • @kellynavarro2669
    @kellynavarro2669 3 หลายเดือนก่อน

    I actually loved your video very specific to the point. You are awesome at explaining things, thank you!
    I had to follow you on instagram & subscribed to your YT!

  • @Cvesterholm
    @Cvesterholm หลายเดือนก่อน

    Awesome instructions! Thanks! // Newcomeer to C/C++

  • @lightbombs
    @lightbombs 2 หลายเดือนก่อน +2

    1:27 there shouldnt be a space like in the video between -w64 -ucrt

  • @stith_pragya
    @stith_pragya 6 หลายเดือนก่อน +1

    Thank You So Much for this wonderful video............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Glad it helped!

  • @7_of_9
    @7_of_9 ปีที่แล้ว +7

    Excellent!!!
    Do a video in creating a software start to finish but not half ass and do show everything that's needed from setting up the coding software to creating a UI and show how they all talk to each other

    • @AlexandraKemper
      @AlexandraKemper ปีที่แล้ว +1

      Good idea - a good starting point for you might be our Getting Started with C++ video (th-cam.com/video/qeEcV6u1kV4/w-d-xo.html), which explains how to set up the environment, install a compiler, and then you run and debug a piece of code. Otherwise, we are always looking for more video ideas that would be helpful to you!

  • @บุณยาพรชัยมงคลทรัพย์
    @บุณยาพรชัยมงคลทรัพย์ 10 หลายเดือนก่อน +2

    This video save my life, thx u so much.

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน +2

      I’m glad it helped! Be sure to like and subscribe!

  • @christiandante4403
    @christiandante4403 5 หลายเดือนก่อน +2

    this video was helpful in many ways😅😅💯

    • @sadiqshaikh8715
      @sadiqshaikh8715 5 หลายเดือนก่อน

      were you able to install gcc successfully?
      I am having a lot of trouble

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Glad this video could help you out!

  • @Student_2028
    @Student_2028 3 หลายเดือนก่อน +7

    it's showing pacman-S--needed command not found . what to do?

    • @873carol
      @873carol 2 วันที่ผ่านมา

      pacman -S mingw-w64-ucrt-x86_64-gcc

  • @ltmr_lyricals
    @ltmr_lyricals 10 หลายเดือนก่อน +3

    Thank you mannhhh... Now let me make some programs and projects😉

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน +1

      Glad it helped! Be sure to like and subscribe!

  • @minhattrinh6891
    @minhattrinh6891 4 หลายเดือนก่อน +1

    Do I need to Edit the "Path" of the System variables as well? 1:55

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Only the Path environment variable. Make sure you select the bin folder of the correct compiler as the path.

  • @iiguizin9162
    @iiguizin9162 2 หลายเดือนก่อน

    Thanks for the amazing tutorial! It works for C too :)

  • @nghienmeochsgame
    @nghienmeochsgame หลายเดือนก่อน

    Thank you so much for the helpful guide!

  • @finmat95
    @finmat95 หลายเดือนก่อน

    01:32 error: invalid option: '--clean' and '--sysupgrade' may not be used together

  • @PhatVu-u1n
    @PhatVu-u1n 10 หลายเดือนก่อน +2

    Thanks for the instructions👍

  • @rivalgptchat
    @rivalgptchat 23 วันที่ผ่านมา

    At 1:45 it did not close auto matically so i just closed it and in the cmd tab it says it did not recognized

  • @code-with-vivek
    @code-with-vivek 3 หลายเดือนก่อน

    great tutorial...way to go for mingw c++ coding...thank you...

  • @acid_ibis4214
    @acid_ibis4214 9 หลายเดือนก่อน +1

    I dont have an intellisense option.
    How do you get your command palatte to say search and have a magnifying glass?
    I just installed vs studio and it says unentitled workspace.

    • @tarik_hello
      @tarik_hello 9 หลายเดือนก่อน

      Make sure you have a folder open with the files you want to work with. You can do this by using “Open Folder” under the file menu. To use the command pallete, use the ctrl+Shift+P hot key. To get access to the command from the video you must have an active .cpp file open

    • @acid_ibis4214
      @acid_ibis4214 9 หลายเดือนก่อน

      @@tarik_hello It turned out I didn't have a cpp properties or something folder so I made it by hand then it worked

  • @dikoakidiva7395
    @dikoakidiva7395 21 วันที่ผ่านมา

    Thank you Tarik, this was helpful.

  • @AkbarHossain-o4u
    @AkbarHossain-o4u 6 หลายเดือนก่อน +6

    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.

    • @AntonioVivaldi-si5mr
      @AntonioVivaldi-si5mr 5 หลายเดือนก่อน +1

      im having problems too lol :( was supposed to be easy...

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Could you try revisiting the PATH environment variable step? Make sure you are pointing toward the bin folder.

    • @Ikronix007
      @Ikronix007 3 หลายเดือนก่อน

      @@tarik_hello I have done that and still doesn't show up. I have it directed towards the BIN folder.

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 3 หลายเดือนก่อน +2

      check the folder "bin" . if it's empty running the code pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain in installer can help

    • @AlexKelly-mk8py
      @AlexKelly-mk8py 15 วันที่ผ่านมา

      Mine says the compiler is there, but visual studio won't compile the code.

  • @gayas7985
    @gayas7985 23 วันที่ผ่านมา

    i click three time and then start but easy and very straigt forward. thanks one again

  • @Overseer190
    @Overseer190 14 วันที่ผ่านมา

    2:20 gcc --version still not working even after doing all of the steps

    • @SahithyaSY
      @SahithyaSY 12 วันที่ผ่านมา

      Yeah even mine

    • @lmfao3293
      @lmfao3293 6 วันที่ผ่านมา

      me too, i tried 10 times up till now and finally work :v

  • @sojifadojutimi9229
    @sojifadojutimi9229 2 หลายเดือนก่อน

    worked well, make sure to let the command prompt download all dependencies

  • @blackironseamus
    @blackironseamus 10 หลายเดือนก่อน +2

    Thanks, this helped a lot!

  • @khanhdoan7930
    @khanhdoan7930 8 หลายเดือนก่อน

    'gcc' is not recognized as an internal or external command,
    operable program or batch file.
    i don't what should i do
    2:32

    • @khanhdoan7930
      @khanhdoan7930 8 หลายเดือนก่อน

      help me guys

    • @tarik_hello
      @tarik_hello 8 หลายเดือนก่อน

      Please revisit the step where you set your PATH environment variable

    • @shloksuman8164
      @shloksuman8164 7 หลายเดือนก่อน

      there are two places where you are able to add PATH. firstly that is shown in the video, 1:57 , User variables for [user] , below that , System Variables is given. In that system variables, PATH is also mentioned. You have to add the PATH there also similar to the process mentioned for above "User variables for [user]".

  • @NewFelixTwo
    @NewFelixTwo 20 วันที่ผ่านมา

    Thank you so much, this saved my life

  • @nithyampprakashs
    @nithyampprakashs 2 หลายเดือนก่อน

    In browse for folder. I don't have UC crrt 64 (2:16) this I didn't know

  • @nvamsikrishna7033
    @nvamsikrishna7033 10 หลายเดือนก่อน +3

    The "Option of C/C++ :Select IntelliSense Configuration" is not shown in the drop down.pls help

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน +1

      This is likely due to a couple of things:
      1. You need to have a .cpp file open to access the extension commands
      2. You need to be acting within a workspace folder and not in single file mode

    • @abdurrahmanalyajouri7992
      @abdurrahmanalyajouri7992 9 หลายเดือนก่อน +4

      type > for it to show up

    • @latexi5581
      @latexi5581 3 หลายเดือนก่อน

      @@abdurrahmanalyajouri7992 Thank you

  • @obadaat3497
    @obadaat3497 2 หลายเดือนก่อน

    thank you you really made this easier for me

  • @jarviisss
    @jarviisss 21 วันที่ผ่านมา +1

    after this "-S --needed base-devel mingw-w64-ucrt-x86_64-toolchain" I have a "-bash: -S: command not found" what should i do&

    • @873carol
      @873carol 2 วันที่ผ่านมา

      pacman -S mingw-w64-ucrt-x86_64-gcc

  • @rishabh-z4x
    @rishabh-z4x 10 หลายเดือนก่อน +3

    after giving the command , it is not prompting.
    In this case , what should i do ...please tell me

    • @tarik_hello
      @tarik_hello 9 หลายเดือนก่อน +1

      Could you please explain more about your situation? If your VS Code instance cannot locate the compiler you may need to revisit the environment variable step.

  • @ultrachad1928
    @ultrachad1928 2 หลายเดือนก่อน

    thank you so much for the support

  • @majestyreionalido
    @majestyreionalido 21 วันที่ผ่านมา +2

    [Running] cd "c:\Users\Tamikii\Downloads\C++ Braindead\" && g++ arithmetic operators.cpp -o arithmetic operators && "c:\Users\Tamikii\Downloads\C++ Braindead\"arithmetic operators
    cc1plus.exe: fatal error: operators.cpp: No such file or directory
    compilation terminated. How can i fix this??

  • @eyadmohamed4908
    @eyadmohamed4908 11 หลายเดือนก่อน +5

    It failed to retrieve certain files while installing the MySYS

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน +1

      Please revisit the installation, you may need to re-run with admin privileges

    • @eyadmohamed4908
      @eyadmohamed4908 8 หลายเดือนก่อน

      @@tarik_hello i installed it but now vs code crashes everytime I use a .cpp extension for any file

  • @ChafieSifi
    @ChafieSifi 6 หลายเดือนก่อน +3

    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)

    • @zetsu6957
      @zetsu6957 5 หลายเดือนก่อน

      same here if you found the solution please help me too

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      This is probably due to the compiler not being correctly set in your path environment variable, could you try revisiting that step?

  • @Alberto_Cavalcante
    @Alberto_Cavalcante 5 หลายเดือนก่อน

    Helpful. Thanks for sharing!

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Thanks for watching!

  • @olenkavasylko
    @olenkavasylko 3 หลายเดือนก่อน +1

    What should i di if i can not open edit environment variables for your account in windows search bar?

  • @romania-n6q
    @romania-n6q 6 หลายเดือนก่อน +1

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

  • @rokkuzner
    @rokkuzner 7 หลายเดือนก่อน

    Thank you very much. Very helpful!

  • @lmfao3293
    @lmfao3293 6 วันที่ผ่านมา

    Thank you so much, finally working

  • @strangeyt6483
    @strangeyt6483 4 หลายเดือนก่อน

    to all of you who have followed step by step but when they run the code the error occurs (g++ not found or whatever) that is mostly due to because u might be running the code in an old folder, u should create a new folder and a new cpp file in it and it will work IA.

  • @siddharthjain6629
    @siddharthjain6629 5 หลายเดือนก่อน

    What a Beautiful Explanation

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Glad it helped!

  • @Kingofthewinter
    @Kingofthewinter 2 หลายเดือนก่อน

    Thank you very much for this video!

    • @code
      @code  2 หลายเดือนก่อน

      You're very welcome!

  • @jeremygunawan7285
    @jeremygunawan7285 4 วันที่ผ่านมา

    I have a problem sir, i used to execute program that using mathematic function. And the program error -1. But the other program still working, how do i fix it?

  • @User948____
    @User948____ 10 หลายเดือนก่อน +1

    mine says “unable to find C:\msys64\bin\gcc.exe. C/C++ gcc.exe build active file task is ignored”

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน

      There are a few reasons why this could be the case but first revisit the steps you need to set the compiler in your path environment variable. Make sure you are pointing your path environment variable toward the bin folder. Without the compiler being found in your PATH VS Code will not be able to find your compiler.

  • @honourable8816
    @honourable8816 10 หลายเดือนก่อน +1

    After pressing 'y' (5/58) files downloaded but then error occured (problem: unable to get local issuer certificate)

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน +1

      I believe this is a permission issue, try re-running the compiler with admin privileges.

    • @honourable8816
      @honourable8816 9 หลายเดือนก่อน

      Too many mgw icons in start menu 🫨

    • @honourable8816
      @honourable8816 9 หลายเดือนก่อน +1

      ​@@tarik_hellostill the same error😢

  • @RobertMurphy-wm3ge
    @RobertMurphy-wm3ge 9 หลายเดือนก่อน

    To save some others from the mistake I made, make sure you add the new PATH entry to the User Variable PATH, not SYSTEM.
    I am just learning the minimalist way and I love it so far.

  • @blade8424
    @blade8424 3 หลายเดือนก่อน +1

    Did everything you said in the video trying to get C working with the compiler in visual code. Keep getting in command prompt
    gcc is not recognized as an internal or external command,
    operable program or batch file. How do I fix this??? Got in the right path etc.

    • @wasdaq2293
      @wasdaq2293 3 หลายเดือนก่อน +1

      If you havent, try running the command prompt as an administrator.

    • @Samrtfirdeg
      @Samrtfirdeg 3 หลายเดือนก่อน

      @@wasdaq2293 OMG you are life saver. Had the same issue and no matter what i did my command prompt did not recognise but after running it as an administrator it works

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 3 หลายเดือนก่อน

      check the folder "bin". if it's empty - try to run the command pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain in installer again

  • @asiis181
    @asiis181 3 หลายเดือนก่อน +2

    Awesome but little bit confusing for newbies.. it looks like you skipped some parts ... plz make sure you can explain each step clearly

  • @KaranKumar-e5w7u
    @KaranKumar-e5w7u 15 วันที่ผ่านมา

    Thanks it worked and was easy to set up

  • @zeebicse9426
    @zeebicse9426 11 หลายเดือนก่อน +1

    Thanks I was having trouble setting it up

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน +1

      I am glad the video helped you out! Be sure to like and subscribe!

    • @am99.99
      @am99.99 11 หลายเดือนก่อน +1

      i followed every single step, but my bin folder is empty 😣😣😫 why?????????????? ans please.

    • @zeebicse9426
      @zeebicse9426 11 หลายเดือนก่อน +1

      @@am99.99 Open it again, define the path variable and click ok, this should apply the settings.

    • @am99.99
      @am99.99 11 หลายเดือนก่อน +1

      @zeebicse9426 I'll try,thx for response

    • @am99.99
      @am99.99 11 หลายเดือนก่อน +1

      @zeebicse9426 I tried another way but still.....bro done. Thank you 🤝

  • @Solty57
    @Solty57 10 หลายเดือนก่อน +1

    hello I download and follow all instructions but when I want to see if there is some memory leak by using -fsanitize=address it didn't work and it say "It cannot be find" so is there an other command or something else to resolve my problem? thanks

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน

      I would advise you to look into the description of this video and explain your issue in detail to the team's issue submission page.

  • @matthewbritten2371
    @matthewbritten2371 11 หลายเดือนก่อน +1

    I got to the last step and the Use gcc.exe option appears after running Select IntelliSense Configuration but when I run the code is says: “file format not recognized; treating as linker script”. I double checked the path and it has the correct bin file.

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน

      This sounds like a configuration issue, please take a look at our documentation page or video about running your C++ code. This video is just for getting your compiler

  • @VpnO-eo7op
    @VpnO-eo7op หลายเดือนก่อน

    thanks for explanation
    i checked the steps several times but i have a small problem
    i cant find " select intellisense configuration.." in command palette ?
    what's the problem ?
    (gcc ,g++ and gdb have been installed correctly according to cmd bcz i can find their version and related info)

  • @jakesmedley965
    @jakesmedley965 9 หลายเดือนก่อน +2

    it worked for a day or two then it keeps saying error with the file not existing

    • @tarik_hello
      @tarik_hello 9 หลายเดือนก่อน

      Could you provide more context? Are you not able to open a .cpp file?

    • @빼리꼬따72
      @빼리꼬따72 4 หลายเดือนก่อน

      Exactly same bro😢😢😢😢

  • @AmeyawEmmanuelKakari
    @AmeyawEmmanuelKakari 6 หลายเดือนก่อน +1

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

  • @FIRAFLASH
    @FIRAFLASH 11 หลายเดือนก่อน +1

    inally i was able to this by my self thank u blud

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน +1

      Glad it helped 👌🏿

    • @FIRAFLASH
      @FIRAFLASH 11 หลายเดือนก่อน

      i have a question its not always compiling using the gcc i should always change it in the C/C++: Select IntelliSense Configuration...
      recently used G} how can i make it a defualt compiler
      @@tarik_hello

  • @JDJHB117
    @JDJHB117 8 หลายเดือนก่อน +1

    Hey there I followed the guide exactly as you state but when I go to run coding, I get this error code. The preLaunchTask 'C/C+ +:gcc.exe build active file' terminated with exit code -1. Environmental Variable is also set up to C:\msys64\ucrt64\bin. When I run the cmmd prompt g++ --version I get no error codes either. Any ideas what could be going on ?

    • @tarik_hello
      @tarik_hello 8 หลายเดือนก่อน

      It sounds like you are using the gcc compiler to run C++ code. You want to use the g++ computer instead. The gcc compiler is for c code

    • @JDJHB117
      @JDJHB117 8 หลายเดือนก่อน

      @@tarik_hello Thanks for responding, I was able to set up the compiler and run code without issues. One thing I have to ask is why nothing is showing up in the Output when i run code? It only shows up under the terminal when I run my code. I remember before when I would run a file it would run it in Output but now its in terminal. Is this normal? How can I fix it?
      Edit: I am dumb I had C/C++ when running the code instead of just running the code, also unchecked run in terminal, and installed Code Runner extension.

    • @tarik_hello
      @tarik_hello 8 หลายเดือนก่อน +1

      @@JDJHB117 I am glad you were able to fix your issue!

  • @subhadradas4896
    @subhadradas4896 หลายเดือนก่อน +1

    Why does it stop at , running post transaction hooks
    Updating the info directory file......

  • @salsalazar7646
    @salsalazar7646 4 หลายเดือนก่อน +2

    For the people getting the, '-bash: ~pacman: command not found'

    Maybe you are pasting the command like this, '~pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain'
    you need to erase the '~' at the start of the command, so you will get something like this,
    pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain

  • @kurtenkera7678
    @kurtenkera7678 11 หลายเดือนก่อน +1

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

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน

      While I am unfamiliar with LAPACK, the tutorial specifically mentions how to setup a compiler from MinGW. If the compiler you are trying to setup is not well known, you may need to have the extension detect it manually using the “Select IntelliSense Configuration” command as VS Code may not recognize it as a valid compiler. Could you please provide more information about LAPACK?

  • @HappB5
    @HappB5 4 หลายเดือนก่อน +1

    I did this and the compiler works on the dir I made in the tutorial, but it doesn't work in any file that has 'Onedrive' in its path. Does anybody know how to fix this or do I have to make my project folders outside of onedrive?

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      You may need to make sure files are local to your computer to access them via VS Code.

  • @wyndscare2020
    @wyndscare2020 5 หลายเดือนก่อน +1

    So frustrating, none of this works. I follow the steps to the letter, but after the pathing step, nothing is pathed correctly. using the gcc --version command in command prompt shows that msys2 isn't being used at all, and it results in the compiler being inactive no matter what I do

    • @tarik_hello
      @tarik_hello 4 หลายเดือนก่อน

      Please make sure you are pointing toward the bin folder specifically; this is an issue a lot of people are running into.

    • @tibetje226
      @tibetje226 4 หลายเดือนก่อน +1

      @@tarik_hello I have the same problem and I am pointed to that bin folder. You keep giving the same answer to people with the same problem that doesn't help.

    • @windy6191
      @windy6191 3 หลายเดือนก่อน

      make sure you edit the Path in "System variables" at the bottom too

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 3 หลายเดือนก่อน

      @@tibetje226 make sure the folder "bin" is not empty. mine was empty and after fixing it everything worked out.

  • @jeetendrashukla7090
    @jeetendrashukla7090 3 หลายเดือนก่อน +1

    This ain't working sir ..I've tried it over 20 times but the intellisense option doesn't show up
    Any alternative?

    • @jeetendrashukla7090
      @jeetendrashukla7090 3 หลายเดือนก่อน

      Sorry for the incorrect message i skipped the 1st stage itself due to which it wasn't displaying.
      Thanks bro for the informative video!🤌

  • @The_Ostrich
    @The_Ostrich ปีที่แล้ว +1

    Doesn't work, when I compile my programm I get the error message "launch:program C:\ path\.vscode\filename.exe does not exist", and it asks me if I want to open launch.json and I have no idea what that even is when I open it. I'm getting tired of this, I tried this for 4 hours straight and it won't work, things like these shouldn't be so difficult...

    • @FrogTesseract
      @FrogTesseract 11 หลายเดือนก่อน

      any fix yet?

  • @football10k8
    @football10k8 10 หลายเดือนก่อน +1

    after installing i can copy in the description sentence so i will wrote it then an error obtained ..... pacman -S --needed base-devel mingw-w64-ucrt-x86_64-tooichain
    error: target not found: mingw-w64-ucrt-x86_64-tooichain

    • @tarik_hello
      @tarik_hello 10 หลายเดือนก่อน

      I believe there is a typo in the command you are using (see “tooichain”)

  • @moyuLua
    @moyuLua 18 วันที่ผ่านมา

    I can't get the last step to work like the video does, although I've been able to compile and execute via shell. What should I do....

    • @moyuLua
      @moyuLua 18 วันที่ผ่านมา

      reset vscode json!!!

  • @jackcienkus
    @jackcienkus ปีที่แล้ว +1

    my command prompt isnt picking up gcc and says " ' gcc' is not recognized as an internal or external command, operable or batch file."
    how do i fix this?

    • @smurfij4212
      @smurfij4212 ปีที่แล้ว

      hi this also happened to me, have you figured out the solution?

    • @smurfij4212
      @smurfij4212 ปีที่แล้ว +4

      hey i figured it out! it could be that you selected the msys64's "bin" instead of the ucrt64's "bin" in the edit environment areas section. Hope this helps!

    • @tarik_hello
      @tarik_hello ปีที่แล้ว

      @@smurfij4212Thank you for your suggestion! I would second this advice

    • @jackcienkus
      @jackcienkus 11 หลายเดือนก่อน

      @@smurfij4212 thank you so much! im pretty sure this was my issue :)

  • @g4541gf
    @g4541gf 2 หลายเดือนก่อน +2

    finally someone who isnt a pajjet scammer indian

  • @اريام-ك6ك
    @اريام-ك6ك 8 หลายเดือนก่อน +1

    I did everything and it's works but when I run the code it's shows (launch: program 'C:\Users\##\Desktop\##\##.exe' does not exist) why?

    • @sed-6
      @sed-6 5 หลายเดือนก่อน

      mine too, did you fix it?

  • @utkarshkumar7336
    @utkarshkumar7336 3 หลายเดือนก่อน

    when ever i launch vs code and run a program it just debugs the code and i have to click run again for it to run the program. is there a way to directly run the program without having to do it twice and also without it showing a huge path everytime it runs so that the output looks clean

  • @Amir-gi5fn
    @Amir-gi5fn 11 หลายเดือนก่อน +1

    Couldn't figure it out, it's ok when I type the thing in terminal, but couldn't manage to run a thing

    • @tarik_hello
      @tarik_hello 11 หลายเดือนก่อน

      Please take a look at the other video on the channel “Getting Started With C++” this will help you get your code running. This video is just for acquiring your compiler

  • @vaibhavmevada9668
    @vaibhavmevada9668 วันที่ผ่านมา

    Last one which showing on command pallette is not coming on mine