Installing MinGW Compiler for VSCode on Win 10 x64
Вставка
- Опубліковано 7 вер 2024
- Getting MingGW to work on VSCode in 3 steps
Step 1: Install C/C++ Plugin from Microsoft within VSCode
marketplace.vi...
Step 2: Download and unzip MinGW to a desired location
sourceforge.ne... (pick x86_64-posix-seh)
mega.nz/file/N...
Step 3: Add the desired location to the Path environmental variable
Step 4: Checkout imy2
Fleetwood Mac - Dreams: • Fleetwood Mac - Dreams...
Bullet: • IMY2 - Bullet (Officia...
I have watched a lot of videos on this. Most of them says Mingw-w64 but they just install Mingw. But yours was truly helpful. Thank you so much for this.
I just wanna say thank you so much bc currently as a CS student during COVID it is a lot harder to figure this stuff out on our own. I've spent the past few days trying different things and had no luck. But thanks to your video I was able to finally get it to work and now I'm gonna help out some of my classmates in discord. Thank u SO MUCH!!!!
No problem! I had issues following instructions elsewhere so I knew this needed to be done =)
After wasting for 4 hours i finally found the right guy
Thanks a lot
Thanks bro. initially I was not able to download the mingw but your method actually worked
My pleasure. It took me a good amount of time to figure it out too! Happy coding!
man, thank you! For teaching how to download the compiler with out msys with it's long story, you saved lots of hours
I had to do the video for all of us who had issues with the installation. Thanks for stopping by.
OH MY GOD IT WORKED
i spent like 3 hours trying to figure this out myself you helped out alot
This worked! I thought my VS Code was broken until I found your video. Thank you!
No problem. I'm glad I can help. Remember you can take a free C++ course (anywhere in youtube) and udemy www.udemy.com/course/free-learn-c-tutorial-beginners/
thank you so much for the video sirr, it's very help full
I didn't close my VS Code and was checking why it is giving me error has this header file not found etc. 😂. Thanks for saving me from wasting more time.
I simple mistake to make and one I shared the solution. Keep coding! ⌨
It keeps saying my header files are missing!!
I followed your steps in the guide but when I run any code the following pops up: 'g++' is not recognized as an internal or external command,
operable program or batch file. Do you know how to help?
You want to be sure the PATH settings is working
You also have to restart VSCode as I indicate int he video
@@levdoescode Yep I tried that, it worked now! thank you!
Finally, a developer to explain it properly.Thank you.Great job.
Your video really helped me a lot...most of the video on youtube use Mingw installer & Msys2 installer...It is great if you can teach how to setup the configuration for debugging 😃
The same happened to me and I knew a video like this was needed
Thanks Lev, very informative!
You are a star mate. Thanks
Thanks, man it was really helpful I tried another tutorials but my problem solved when I so your video 😅.
Thank you
Thank you so much!!
Thank u so much broo 🙏🙏💪
Really really helpful... I'll like and subscribe you for my own good lol🖤
Thanks a bunch brother this helped hats off
ned reference to `WinMain'
collect2.exe: error: ld returned 1 exit status. What should i do?
thanks man, you really saved me
What do I do when the file I downloaded becomes a pdf, do I need to install winrar?
gooooooooooood work
it's Minimalistic GNU for Windows... NOT "Minimalistic Graphical Interface for Windows"
hi, i downloaded MinGW from sourceforge using same link, but there is no BIN folder in directory, cannot find gcc.exe
Please help
you have to pick pick x86_64-posix-seh
And this is 2018 version as it says.There should be updated version.Do you know where to download the zip from?
thank you so much!
Thank You So Much❤❤
it shows environment variables is large while adding to path
Do you mean windows sends a warning and doesn't let you add it?
@@levdoescode YES SAME FOR ME- PLEASE HELP!! it says "the environment variable is too large. This dialog allows setting values up to 2047 characters long" what do I do?
@@adihereonyt It Seems you're typing/pasting the wrong text in the path. The path should be short
Thanks A Lot Bro 🥰🥰🥰🥰🥰🥰
thx!!!!!!
why do I have to put it in 2x so it sounds normal
is it possible to install the mingw compiler for vscode portable mode?, i already have mingw compiler on my main computer but now i have installed the vs code portable mode bc i think my school doesnt have that and we usually use something else than vs code but i already have vs code portable on my usb stick, but is it possible to get that compiler for my usb stick?
You definitely can, you just have to use the full path to the g++.exe instead of the short name that the path configures.
"C:\my_directory\spaced directory\g++.exe" main.cpp
Nice !
thanks u mate
thanks
why would you want the posix version
I do not know the difference, but the other one said win32 so I went for the posix one. If you have information on this, let me know so that I can look it up, test it or add a card with that information 👍
which is the right file if I need to compile C89?? g== doesnt work
g++ doesnt work*
4:28
PS C:\Users\dbi\Desktop\c language> cd "c:\Users\dbi\Desktop\c language\" ; if ($?) { gcc first c -o c:\Users\dbi\Desktop\c language\first c } ; if
($?) { .\c:\Users\dbi\Desktop\c language\first c }
gcc.exe: error: first: No such file or directory
gcc.exe: error: c: No such file or directory
gcc.exe: error: language\first: No such file or directory
gcc.exe: error: c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Try placing the mingw64 folder somewhere else, like c:/ and not under users
i need help with somthing do u have discord
I hope to be on time.
My discord user is the same: levdoescode
when I typed g++ --version it works, but after trying to compile the cpp file, it says
g++.exe: error: 1.cpp: No such file or directory
g++.exe: fatal error: no input files
compilation terminated.
and i noticed that my terminal directory is not pointing to my file's folder, how to set the terminal path?
thanks
Are you using the correct format for calling the application for compiling? I showed it in the video.
Thank you so much!
when I typed g++ --version it showed "The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program." there's error also in command panel as "'gcc' is not recognized as an internal or external command, operable program or batch file." could you please tell me how to solve this problem? Thank you
It sounds like you haven't registered g++ in the path environmental variables