Installing MinGW to build C++ Code on Windows

  Рет қаралды 206,698

Visual Studio Code

Visual Studio Code

Күн бұрын

In this video, we guide you through installing the MinGW toolkit to compile C++ on a Windows machine in Visual Studio Code.*
0:00 Introduction
0:14 MinGW Explained
0:41 Downloading VS Code and the C++ Extension
0:57 Downloading the MSYS2 Installer
1:16 Installing the MinGW Toolkit*
1:44 Editing the PATH Environment Variable
2:24 Verify Compiler Installation via Command Pallette
2:44 Verify Compiler Installation via Select IntelliSense Configuration
*COMMAND LINE for Installing the MinGW Toolkit:
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
Get Started with MinGW in Visual Studio Code:
code.visualstudio.com/docs/cp...
If you run into any problems, feel free to reach out to us by leaving a comment below or reporting an issue on GitHub: github.com/microsoft/vscode-c...
Connect and Subscribe:
/ code
/ vscode
/ code

Пікірлер: 250
@breaktask7132
@breaktask7132 23 күн бұрын
For newbies, this is the "only video you need to kick start your journey"😁
@Goodguy949
@Goodguy949 2 ай бұрын
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.
@ChrisP872
@ChrisP872 3 ай бұрын
This video was very clear and easy to follow. Excellent.
@wribbit
@wribbit 3 ай бұрын
Awesome.. concise, with all the info needed to get started. All instructional videos should be like this :)
@sahilundirwade2825
@sahilundirwade2825 26 күн бұрын
Thanks a lot Mr. Tarik and the VS Code community! This video helped a lot.😃
@SinisterStudyStream-we4rw
@SinisterStudyStream-we4rw 3 ай бұрын
Thank you so much man. This video was incredibly helpful
@PrateekAgrawal-tv3og
@PrateekAgrawal-tv3og 26 күн бұрын
I had been stuck on it for 2 years, finally landed on this video and my problem is solved. Damn! Thanks a lot!!
@acesgaming7017
@acesgaming7017 3 ай бұрын
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 3 ай бұрын
Great to hear!
@aashirafiq5168
@aashirafiq5168 22 күн бұрын
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 .
@vaibhavsingh6339
@vaibhavsingh6339 5 күн бұрын
this helped me in a sticky situation. thanks man
@mrobinson
@mrobinson 6 ай бұрын
Thank you all SO much! I needed this!
@tarik_hello
@tarik_hello 5 ай бұрын
Thank you for watching!
@seikharishuddin4577
@seikharishuddin4577 3 ай бұрын
Thank you so much man. This video was incredibly helpful. Its a relief to able to use VS for C
@user-kl4bf1kc2u
@user-kl4bf1kc2u 4 ай бұрын
This video save my life, thx u so much.
@tarik_hello
@tarik_hello 3 ай бұрын
I’m glad it helped! Be sure to like and subscribe!
@user-mn1xl9ow5e
@user-mn1xl9ow5e 3 ай бұрын
Thanks for the instructions👍
@user-rw7by4tl2g
@user-rw7by4tl2g 4 ай бұрын
I loved the "after you have installed the installer.."
@RanMC9918
@RanMC9918 Ай бұрын
i like "click ok, and click ok, and click ok" 2:17
@stith_pragya
@stith_pragya 5 күн бұрын
Thank You So Much for this wonderful video............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@rokkuzner
@rokkuzner 28 күн бұрын
Thank you very much. Very helpful!
@lonewolf9874
@lonewolf9874 18 күн бұрын
perfect now i can start my journey of hard coding in cpp
@blackironseamus1017
@blackironseamus1017 3 ай бұрын
Thanks, this helped a lot!
@pchandrahas
@pchandrahas 4 ай бұрын
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 3 ай бұрын
Search edit environment in search bar... you'll get it
@7_of_9
@7_of_9 6 ай бұрын
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 5 ай бұрын
Good idea - a good starting point for you might be our Getting Started with C++ video (kzfaq.info/get/bejne/p8t1lrln2pfPhmg.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!
@ltmr_lyricals
@ltmr_lyricals 4 ай бұрын
Thank you mannhhh... Now let me make some programs and projects😉
@tarik_hello
@tarik_hello 4 ай бұрын
Glad it helped! Be sure to like and subscribe!
@Readbooks6800
@Readbooks6800 2 ай бұрын
Thanks for helping 😊
@shottoisaev4669
@shottoisaev4669 4 ай бұрын
Thank you very much!)
@tarik_hello
@tarik_hello 4 ай бұрын
Thanks for watching! Be sure to like and subscribe!
@zeebicse9426
@zeebicse9426 5 ай бұрын
Thanks I was having trouble setting it up
@tarik_hello
@tarik_hello 5 ай бұрын
I am glad the video helped you out! Be sure to like and subscribe!
@am99.99
@am99.99 5 ай бұрын
i followed every single step, but my bin folder is empty 😣😣😫 why?????????????? ans please.
@zeebicse9426
@zeebicse9426 5 ай бұрын
@@am99.99 Open it again, define the path variable and click ok, this should apply the settings.
@am99.99
@am99.99 5 ай бұрын
@zeebicse9426 I'll try,thx for response
@am99.99
@am99.99 5 ай бұрын
@zeebicse9426 I tried another way but still.....bro done. Thank you 🤝
@FIRAFLASH
@FIRAFLASH 5 ай бұрын
inally i was able to this by my self thank u blud
@tarik_hello
@tarik_hello 5 ай бұрын
Glad it helped 👌🏿
@FIRAFLASH
@FIRAFLASH 4 ай бұрын
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
@KwtChrstphr
@KwtChrstphr 3 ай бұрын
Thank you!
@tejalverma6826
@tejalverma6826 3 ай бұрын
Thank you!!
@nm_9_
@nm_9_ 4 ай бұрын
underrated video!
@tarik_hello
@tarik_hello 4 ай бұрын
I am glad the video helped! Feel free to like and subscribe as well!
@kurtenkera7678
@kurtenkera7678 5 ай бұрын
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 5 ай бұрын
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?
@vikrantkale7515
@vikrantkale7515 5 ай бұрын
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 5 ай бұрын
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 4 ай бұрын
Try checking if you are in a Trusted window or in restricted mode, this works only in trusted window.
@ZeusDaBoy
@ZeusDaBoy 4 ай бұрын
@@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 4 ай бұрын
@@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 4 ай бұрын
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
@lakshyabamne
@lakshyabamne Ай бұрын
I installed the msys2 installer and added the path to the environment variables, then when the compiler didn't work, I openend the bin folder and realised it was completely empty XD
@ParthJoshi_xD
@ParthJoshi_xD 3 ай бұрын
Thanks
@noneedforaname640
@noneedforaname640 5 ай бұрын
Thank you.
@tarik_hello
@tarik_hello 5 ай бұрын
Thank you for watching! Be sure to like and subscribe!
@AhmedAbdullah-qf8ou
@AhmedAbdullah-qf8ou 3 ай бұрын
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 3 ай бұрын
Please revisit the environment variable steps and if that doesn’t work try installing the compiler again
@johncysamuel
@johncysamuel 6 ай бұрын
Thanks 👍❤️
@tarik_hello
@tarik_hello 5 ай бұрын
Thank you for watching! Be sure to like and subscribe!
@lufog
@lufog 2 ай бұрын
Unable to resolve configuration with compilerPath "e:\foo\bar\Makefile". Using "cl.exe" instead. :/
@user-xc6vr5on5y
@user-xc6vr5on5y 2 күн бұрын
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)
@rizqipamungkas9506
@rizqipamungkas9506 2 ай бұрын
i'm struggling when prompt the code, how can i prompt it?, i click enter and there was no reaction whatsoever
@NirAuris
@NirAuris 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@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 2 ай бұрын
I have the same problem, did you find the solution mby?
@tarik_hello
@tarik_hello 2 ай бұрын
@@nejcjamsek9806 make sure that if you are running a c++ file, you are using the g++ compiler, not gcc
@abhiramt.g4448
@abhiramt.g4448 4 ай бұрын
Tnk u so much ❤
@tarik_hello
@tarik_hello 4 ай бұрын
Thanks for watching! Be sure to like and subscribe!
@matthewbritten2371
@matthewbritten2371 5 ай бұрын
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 5 ай бұрын
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
@OrxTheWell
@OrxTheWell Ай бұрын
I LOVE YOU, thanks
@NamLe-hm3ey
@NamLe-hm3ey 3 ай бұрын
thanks you
@IshitaGhosh-mp1zh
@IshitaGhosh-mp1zh 14 күн бұрын
i have followed all the steps yet it isnt showing on command prompt .what to do?
@Abn_Alrfa3e
@Abn_Alrfa3e 4 ай бұрын
شكرا لكم 😇😇😇😇😇
@acid_ibis4214
@acid_ibis4214 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@tarik_hello It turned out I didn't have a cpp properties or something folder so I made it by hand then it worked
@user-ht2dw7mq4s
@user-ht2dw7mq4s Күн бұрын
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.
@Solty57
@Solty57 4 ай бұрын
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 4 ай бұрын
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.
@user-kz7ce7qf4w
@user-kz7ce7qf4w 3 ай бұрын
after giving the command , it is not prompting. In this case , what should i do ...please tell me
@tarik_hello
@tarik_hello 3 ай бұрын
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.
@yuktabhardwaj2210
@yuktabhardwaj2210 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 2 ай бұрын
Please make sure you have the extension installed and you are looking at an active .cpp file
@user-ho1pn9sw7k
@user-ho1pn9sw7k 2 ай бұрын
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?
@nvamsikrishna7033
@nvamsikrishna7033 4 ай бұрын
The "Option of C/C++ :Select IntelliSense Configuration" is not shown in the drop down.pls help
@tarik_hello
@tarik_hello 4 ай бұрын
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 3 ай бұрын
type > for it to show up
@anirudhkashyap23
@anirudhkashyap23 4 ай бұрын
Perfect
@tarik_hello
@tarik_hello 4 ай бұрын
Thanks for watching! Be sure to like and subscribe!
@user-uq9cf3dd4y
@user-uq9cf3dd4y Күн бұрын
I have some unknown error in Msys2 Yours said at bottom 58/58 but mine had some extra errors & Now when I check in Command prompt the version doesn't show up What do I do??
@jakesmedley965
@jakesmedley965 3 ай бұрын
it worked for a day or two then it keeps saying error with the file not existing
@tarik_hello
@tarik_hello 3 ай бұрын
Could you provide more context? Are you not able to open a .cpp file?
@jirkadolezal8127
@jirkadolezal8127 3 ай бұрын
thank you
@User948____
@User948____ 4 ай бұрын
mine says “unable to find C:\msys64\bin\gcc.exe. C/C++ gcc.exe build active file task is ignored”
@tarik_hello
@tarik_hello 4 ай бұрын
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.
@cholmayom1647
@cholmayom1647 Ай бұрын
Why am i getting an error even after following every step?
@Amir-gi5fn
@Amir-gi5fn 5 ай бұрын
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 5 ай бұрын
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
@hanyanglee9018
@hanyanglee9018 Ай бұрын
Thanks.
@vikky3905
@vikky3905 13 күн бұрын
Im getting an error stating ----error: failed to init transaction (unable to lock database) error: could not lock database: Permission denied how can I rectify this
@chungtrong7980
@chungtrong7980 Ай бұрын
I was set like video but in the last i see '' 'gcc' is not recognized as an internal or external command, operable program or batch file.'' in command prompt. Can u help me fix it ?
@tarik_hello
@tarik_hello Ай бұрын
This is likely because you did not set your PATH environment variable correctly, please revisit those steps.
@ja9970
@ja9970 Күн бұрын
My code isn't running, it keeps saying, "C/C++:gcc.exe build active file", any help?
@The_Ostrich
@The_Ostrich 5 ай бұрын
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 5 ай бұрын
any fix yet?
@JDJHB117
@JDJHB117 Ай бұрын
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 Ай бұрын
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 Ай бұрын
@@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 Ай бұрын
@@JDJHB117 I am glad you were able to fix your issue!
@J0PHIEL
@J0PHIEL 5 ай бұрын
So it recognized the install version, but when I went into visual studio, it does not show that option you showed. Any suggestions?
@tarik_hello
@tarik_hello 5 ай бұрын
It is likely that you did not set your path environment variable correctly. Please make sure it is pointing to the correct bin folder containing the compiler you need.
@ThevonMusic
@ThevonMusic 5 ай бұрын
@@tarik_hello Nope, that's not the issue, I can check gcc --version without a problem and added the correct bin folder to PATH. Still, VS Code doesn't see g++ and it simply doesn't show up. On Windows 11 here. On my windows 10 PC it works like it should, but not on my laptop running windows 11.
@enricoschievano621
@enricoschievano621 4 ай бұрын
Try checking if you are in a Trusted window or in restricted mode, this works only in trusted window.
@samrusselcanillo127
@samrusselcanillo127 4 ай бұрын
Please help me. I got failed retrieving file its erroe what should I do thankyou so much
@tarik_hello
@tarik_hello 4 ай бұрын
Please check that you are running the installer with administrator privileges as this may be blocking you from installing the files you need.
@tejasbhimani5320
@tejasbhimani5320 20 күн бұрын
I’m unable to proceed after the copy paste The error which is displayed states : invalid option: ‘-clean ‘ and ‘- sysupgrade’ may not be used together . How do I fix this? Please help!
@tarik_hello
@tarik_hello 20 күн бұрын
Could you provide the exact command you used? I have tried the command recently and have been able to install the compiler.
@tejasbhimani5320
@tejasbhimani5320 19 күн бұрын
Thanks for the help . I proceeded with the previous step . But the output that is displayed on the command prompt states ‘gcc’ is not recognised as an internal or external command, operable program or batch file .
@jackcienkus
@jackcienkus 5 ай бұрын
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 5 ай бұрын
hi this also happened to me, have you figured out the solution?
@smurfij4212
@smurfij4212 5 ай бұрын
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 5 ай бұрын
@@smurfij4212Thank you for your suggestion! I would second this advice
@jackcienkus
@jackcienkus 5 ай бұрын
@@smurfij4212 thank you so much! im pretty sure this was my issue :)
@eyadmohamed4908
@eyadmohamed4908 5 ай бұрын
It failed to retrieve certain files while installing the MySYS
@tarik_hello
@tarik_hello 5 ай бұрын
Please revisit the installation, you may need to re-run with admin privileges
@eyadmohamed4908
@eyadmohamed4908 2 ай бұрын
@@tarik_hello i installed it but now vs code crashes everytime I use a .cpp extension for any file
@datzfain
@datzfain 6 ай бұрын
Nice. We are in 2008 again? :))
@alisinahussaini6936
@alisinahussaini6936 5 ай бұрын
i did everything right but the bin file is empty what should i do can some body help me?
@tarik_hello
@tarik_hello 5 ай бұрын
Could you please try revisiting the installer steps? You may need to run as administrator to get all the files correctly installed
@FoolsGuld
@FoolsGuld 5 ай бұрын
I ran into an issue where it says "'g++' is not recognized as an internal or external command, operable program or batch file." even though I though I did all of the steps correctly. Can someone help?
@tarik_hello
@tarik_hello 5 ай бұрын
I am sorry for your issue! This is most likely due to an issue in your path environment variable. Please ensure that the path correct path to your "ucrt64/bin" folder has been added to the PATH environment variable. It is important that you point to the bin folder as this is what contains the compiler. Try restarting your computer after doing so. If the issue persists, please follow up here
@FoolsGuld
@FoolsGuld 5 ай бұрын
@@tarik_hello the issue wasn't with the path or anything, but I restarted my computer and tried running vscode as administrator and it worked after that
@FoolsGuld
@FoolsGuld 5 ай бұрын
thank you by the way
@amarwavare711
@amarwavare711 Ай бұрын
Got this error ! $ pacman -S --needed base-devel mingw-w64 -ucrt-x86_64-toolchain error: invalid option: '--clean' and '--sysupgrade' may not be used together Any resolution for this ?
@gauravjaiswal9887
@gauravjaiswal9887 Ай бұрын
Use a spacebar after toolchain
@davidjackson7675
@davidjackson7675 5 ай бұрын
And it has a FORTRAN compiler 😊
@Bullseyegaming-ou1xo
@Bullseyegaming-ou1xo 2 ай бұрын
thanks man
@DominicSavio-is4ln
@DominicSavio-is4ln Ай бұрын
Please how do I get the msys2 folder
@tarik_hello
@tarik_hello 20 күн бұрын
This is traditionally installed in your C:/Drive but could be installed differently based on your installation
@Elbereth_TV
@Elbereth_TV 4 ай бұрын
followed all the steps, still cant see any compilers even after selecting it
@tarik_hello
@tarik_hello 4 ай бұрын
Could you check that the compiler was correctly installed using the gcc -version command? If not you may need to revisit the environment variable step
@honourable8816
@honourable8816 3 ай бұрын
After pressing 'y' (5/58) files downloaded but then error occured (problem: unable to get local issuer certificate)
@tarik_hello
@tarik_hello 3 ай бұрын
I believe this is a permission issue, try re-running the compiler with admin privileges.
@honourable8816
@honourable8816 3 ай бұрын
Too many mgw icons in start menu 🫨
@honourable8816
@honourable8816 3 ай бұрын
​@@tarik_hellostill the same error😢
@cyneater6300
@cyneater6300 24 күн бұрын
you should see in the list of compilers but I don't so what the hell do I do
@nimbletortoise6228
@nimbletortoise6228 5 ай бұрын
it says failed to init transaction (unable to lock database) error: could not lock database: Permission denied any fixes?
@BEAST-45
@BEAST-45 5 ай бұрын
From past 3 days it's happening with me
@tarik_hello
@tarik_hello 5 ай бұрын
Could you please let me know at what step you are seeing this issue? Without any context, it sounds like a permissions error that could be fixed through admin privileges
@richardgebbia5189
@richardgebbia5189 5 ай бұрын
@@tarik_hello Thanks for the admin privileges hint, Tarik. This happened to me after running MSYS2 executable once the installer finishes. I was able to fix this by running MSYS2 as administrator.
@user-oi8vi2xx2w
@user-oi8vi2xx2w 4 ай бұрын
Is it possible to install on arm
@tarik_hello
@tarik_hello 4 ай бұрын
Yes, the C++ Extension does support Arm, feel free to install the extension on your machine and check out our ARM specific documentation.
@user-nh3gv1iu4l
@user-nh3gv1iu4l 5 ай бұрын
I have done all these steps, but it doesnt work, I realized that the Bin folder is empty
@tarik_hello
@tarik_hello 5 ай бұрын
You may need to revisit the installation steps, try running the installer as an administrator
@DifkaTali
@DifkaTali 4 ай бұрын
Why am i always failing while download those 58 file
@tarik_hello
@tarik_hello 4 ай бұрын
This may be due to lack of administrative privileges. Your machine may not trust the application that is being used to install the files. Try running the installer as an administrator.
@RobertMurphy-wm3ge
@RobertMurphy-wm3ge 3 ай бұрын
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.
@daiakialv1580
@daiakialv1580 10 күн бұрын
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
@bubaque
@bubaque 5 ай бұрын
Not popping up for me in vscode. Ive been stuck for five hours :((((((((((
@tarik_hello
@tarik_hello 5 ай бұрын
Could you please explain to me what step you are having trouble with and we can troubleshoot together?
@football10k8
@football10k8 3 ай бұрын
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 3 ай бұрын
I believe there is a typo in the command you are using (see “tooichain”)
@hargunanikhushi4828
@hargunanikhushi4828 Ай бұрын
$ pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain error: failed to init transaction (unable to lock database) error: could not lock database: Permission denied what to do about this error?
@pitsfoul
@pitsfoul 21 күн бұрын
run the msys as admin
@raven9965
@raven9965 6 ай бұрын
same but now on a docker container
@tarik_hello
@tarik_hello 5 ай бұрын
We will keep this in mind for future tutorials!
@RudraC
@RudraC 6 ай бұрын
One question, why not use wsl?
@tarik_hello
@tarik_hello 6 ай бұрын
This tutorial is specifically for Windows users who requested a MinGW tutorial but you bring up a good idea for a future tutorial. Thank you!
@Febbe1
@Febbe1 5 ай бұрын
Actually the question ist, why not use MSVC or clang-cl? Both are way better integrated into the system without extra layers between them?
@tarik_hello
@tarik_hello 5 ай бұрын
@@Febbe1That is a great question! While there are many compilers to choose from, MinGW tends to be the most widely used and thus the subject of this tutorial.
@user-py1sg4cw9r
@user-py1sg4cw9r 5 ай бұрын
Enter a selection (default=all): [y/n] y error: invalid number: [y/n]
@tarik_hello
@tarik_hello 5 ай бұрын
Have you tried re-running the installation process? Do you get this error when you just press enter with no arguments?
@nerthus7
@nerthus7 5 ай бұрын
try typing uppercase Y
@shivendrapratap8144
@shivendrapratap8144 5 ай бұрын
The last step is not working??
@tarik_hello
@tarik_hello 5 ай бұрын
Could you please clarify? If VS Code is not picking up your compiler you made need to revisit the steps to set up your path environment variable. Make sure it is pointing toward the bin folder of the correct compiler.
@khanhdoan7930
@khanhdoan7930 Ай бұрын
'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 Ай бұрын
help me guys
@tarik_hello
@tarik_hello Ай бұрын
Please revisit the step where you set your PATH environment variable
@shloksuman8164
@shloksuman8164 Ай бұрын
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]".
@tarik_hello
@tarik_hello 6 ай бұрын
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 5 ай бұрын
Can't copy😢
@am99.99
@am99.99 5 ай бұрын
@@omnii630 that's right bro, you need to select whole command and slip it to directly that position. you cannot paste there.
@moist5339
@moist5339 5 ай бұрын
it doesn't work, it says the pacman command does not exist.
@anaghahr6405
@anaghahr6405 Ай бұрын
@@moist5339try running this command before that one -> “pacman -Syu” It worked for me
@ghaniyausmani5245
@ghaniyausmani5245 13 күн бұрын
Yes what should we do now​@moist5339
@anthonyoneal1856
@anthonyoneal1856 4 ай бұрын
I've only got 14 files when installing the MinGW then when I check my files through command prompt the file "is not recognized as an internal or external command, operable program or batch file." What do I need to do? It also pops up in the edit environment variables. I did it twice. Once I've gotten ucrt64, then ucrt64/bin. still the files didn't show in the command prompt.
@anthonyoneal1856
@anthonyoneal1856 4 ай бұрын
yours's said it has 58 files when installing...
@tarik_hello
@tarik_hello 4 ай бұрын
You may need to re-run the installer with administrator privileges. Usually, if you have an issue acquiring the files you need, your machine is not giving the application permission to install them.
@RealSamiul
@RealSamiul 2 ай бұрын
Why mysys2 installation is stuck at 50% in my laptop? I waited for an hour still it's stuck at 50%. Now I know why people use linux😐
@tarik_hello
@tarik_hello 2 ай бұрын
This could be a permissions issue or you may want to restart the installation
@epicfamily9184
@epicfamily9184 2 ай бұрын
same here :( i can download other files with ease but this is not downloading
@RealSamiul
@RealSamiul 2 ай бұрын
@@epicfamily9184 first disable firewall then run the installer as administrator
@Knee_Ghast
@Knee_Ghast Ай бұрын
Ikr, windows is so complicated, time to switch I guess
@jezreelchavez4583
@jezreelchavez4583 20 күн бұрын
i followed every single step in the video but when i run the command prompt it say not recognize
@tarik_hello
@tarik_hello 20 күн бұрын
What step are you having this issue on?
@jezreelchavez4583
@jezreelchavez4583 20 күн бұрын
When i run the command prompt and i type gcc --version it says it doesnt recognize
@tarik_hello
@tarik_hello 20 күн бұрын
@@jezreelchavez4583 this is most like due to an issue with setting the compiler in your PATH environment variable. Could you try revisiting that step and see if that changes anything?
@jezreelchavez4583
@jezreelchavez4583 19 күн бұрын
Ok i'll try to reinstall everything
@user-dg5pu2sl4x
@user-dg5pu2sl4x 5 ай бұрын
y comand not working what i do
@tarik_hello
@tarik_hello 5 ай бұрын
If you are referring to the command to install MinGW, please make sure you have the correct command. You can copy it here:pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,1 МЛН
C++ in VS Code: A Quick Guide
5:13
Visual Studio Code
Рет қаралды 93 М.
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 479 М.
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 10 МЛН
SSH into Remote VM with VS Code | Tunneling into any cloud | GCP Demo
10:26
Working with Multiple Dev Containers in VS Code
9:46
Visual Studio Code
Рет қаралды 27 М.
Setup VS Code with C++ On Windows 11 (or 10)
7:12
KNuggies
Рет қаралды 13 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 561 М.
C++ in VS Code: Building your Code with CMake
9:37
Visual Studio Code
Рет қаралды 16 М.
My Visual Studio Code Setup for Web Development
15:22
ForrestKnight
Рет қаралды 1 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 547 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,3 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 319 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 4,4 МЛН