HomeОбразованиеRelated VideosMore From: ProgrammingKnowledge

How to install and run GCC compiler in Windows

1086 ratings | 324861 views
Find More Codes On My Website - http://www.codebind.com/ MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications. For Downloading MinGW open http://www.mingw.org/ ------------------Online Courses to learn---------------------------- Java - https://bit.ly/2H6wqXk C++ - https://bit.ly/2q8VWl1 AngularJS - https://bit.ly/2qebsLu Python - https://bit.ly/2Eq0VSt C- https://bit.ly/2HfZ6L8 Android - https://bit.ly/2qaRSAS Linux - https://bit.ly/2IwOuqz AWS Certified Solutions Architect - https://bit.ly/2JrGoAF Modern React with Redux - https://bit.ly/2H6wDtA MySQL - https://bit.ly/2qcF63Z ----------------------Follow--------------------------------------------- My Website - http://www.codebind.com My Blog - https://goo.gl/Nd2pFn My Facebook Page - https://goo.gl/eLp2cQ Google+ - https://goo.gl/lvC5FX Twitter - https://twitter.com/ProgrammingKnow Pinterest - https://goo.gl/kCInUp Text Case Converter - https://goo.gl/pVpcwL -------------------------Stuff I use to make videos ------------------- Stuff I use to make videos Windows notebook – http://amzn.to/2zcXPyF Apple MacBook Pro – http://amzn.to/2BTJBZ7 Ubuntu notebook - https://amzn.to/2GE4giY Desktop - http://amzn.to/2zct252 Microphone – http://amzn.to/2zcYbW1 notebook mouse – http://amzn.to/2BVs4Q3 ------------------Facebook Links ---------------------------------------- http://fb.me/ProgrammingKnowledgeLearning/ http://fb.me/AndroidTutorialsForBeginners http://fb.me/Programmingknowledge http://fb.me/CppProgrammingLanguage http://fb.me/JavaTutorialsAndCode http://fb.me/SQLiteTutorial http://fb.me/UbuntuLinuxTutorials http://fb.me/EasyOnlineConverter HOWTO Install the MinGW (GCC) Compiler - install and use GCC in windows 7 x64 Installing C++ compilers Compiler Help g++ Windows Searches related to How to install and run G++ compiler in Windows how to install gcc compiler in windows 7 how to install gnu c++ compiler on windows how to install gcc on windows 7 machine? How to Install MinGW (Minimalist Gnu C/C++ Compiler) Installing and Configuring C/C++ Support Install gcc on windows - GNU Compiler how to install gnu C compiler on Windows
Html code for embedding videos on your blog
Text Comments (183)
ProgrammingKnowledge (1 year ago)
Find More Codes On My Website - http://www.codebind.com/
孙贯贤 (14 days ago)
Thank you so much, it's helpful for me!
Anmol Dani (1 month ago)
can anyone make me understand why do we need to do this ?
balji balaji (1 month ago)
Thank you it was really helpful but ls command didn't work
Wholeness (1 month ago)
Thank you! battled in windows 10; step by step guide!
D. S. (1 month ago)
Get video. Thank you! Windows 10 allows for adding a unique entry at this stage - apx. 6:02 (instead of adding it to the end of the /... string). It works basically the same however; so just paste it there.
Scott R (2 months ago)
This worked, but "The MinGW team do not recommend modifying the Windows PATH variable system wide." http://www.mingw.org/wiki/Getting_Started
sean gleason (3 months ago)
This was super helpful!!! Thank you very much :)
TS GamesEu (4 months ago)
thank you so much for this, you are great
Galaxis (4 months ago)
"ls" is a Linux command that did not work for me. I had to type "dir" instead. And Hello World .C did not compile until I added line return 0; I don't understand how you got yours to compile without adding return.
rhishikesh sapkal (4 months ago)
this video helped me a lot I used c++ minGW a few years back and did not remember which PATH i'm supposed to append the path of bin folder to, this video help me a lot finally I will be able to complete my project
Ragab Zidan (5 months ago)
thanks a lot it is very helpful
bhagyashri bhakad (6 months ago)
Thank you so much sir because you i could solved my problem related to compiler...
GARIMA JAISWAL (6 months ago)
It was very helpful, thank you.
화람쥐 (6 months ago)
Thank you, sir!! I finally run my first .exe file!
Softech Programming (6 months ago)
Nice Video.. But know about more on compiler click here. #SoftechProgramming
Todd B. (7 months ago)
Thank you! Helpful video!
John Kodjian (7 months ago)
the command prompt say g++ or gcc is not a recognized internal or external command
Let Us Learn (7 months ago)
Thank u so much bhaijan....Love u brother
JanekekxYT (8 months ago)
this is not safe. can you please do tutorial what do download not from sourceforge because i scanned it and antiviruses say is Worm or Unsafe
pebble225 (8 months ago)
Um.. this isn't GCC this is MinGW
paulv20 (8 months ago)
You. Are. Amazing! Thank you for this tutorial + your blog for small projects to practice on! Been looking for help with cmd + compiler everywhere. This is exactly what I need! Thanks a bunch!
Ayize Akono (8 months ago)
Thanks for sharing this knowledge...
Anonymystic Gaming (9 months ago)
It says g++; fatal error; no input file compilation terminated
chezhiyan spartan (10 months ago)
thank you
tushar ladukar (10 months ago)
This video was very helpful to me. Thank You.
Jacob Parackel (11 months ago)
nice video it worked properly
theprzemko07 (11 months ago)
FUCKING INDIAN
Tamim Nahhas (1 year ago)
thank u so much u r great
Tín Vi (1 year ago)
I've got error: g++: error: CreateProcess: No such file or directory
EduPark Krupesh (11 months ago)
https://youtu.be/TOeKtN6Vir4 Follow this very easy tutorial
Pikesh Patel (1 year ago)
try this https://www.youtube.com/watch?v=pDk7GnCD648&t=29s
Muzakeer Shaik (1 year ago)
I'm unable to use commands like "ls" and also every time I compiles the program I'm getting a.exe as output file, but not as shown in video as I'm using windows 10. How can I run Linux commands on windows command prompt?
Muzakeer Shaik (1 year ago)
Thanks, I googled it and I run the bash on ubuntu to run linux commands on windows command prompt.
fenom (1 year ago)
friend you are the best ..really its simple clear..thanks !
Aarnav Sinha (1 year ago)
I just found a fix to those who are confused with the ls command.It is a unix/linux command, and doesn't work. What you need to do is: 1-type in 'dir' instead of 'ls'. 2-then type in g++ -o <executable name> <c++ file name> 3-That should do it. P.S. 'ls' and 'dir' are not needed to compile. They are just used to confirm that the cpp file is there in the directory. If you are sure you need not use dir and ls.
Aarnav Sinha (1 year ago)
Please respond. I just realized that 'ls' is a unix command, not a windows one. The windows equivalent is 'dir'. But the latter commands do not work.
Pikesh Patel (1 year ago)
try this https://www.youtube.com/watch?v=pDk7GnCD648&t=29s
You can send me answer by [email protected]
Who wanna help me to know how computer interprets QR code and barcodes.
Nilanjan Paul (1 year ago)
+1 for your tutorial. Thanks!
Spilka Polina (1 year ago)
Thank you very much!!! Very good simple explanation!
Yes Yes Yes!!! This is what I want!!! Another tip doesn't help any but this video help a lot
Josh Roe (1 year ago)
Thank you! Been stuck on this for an hour. turns out running CMD as admin does not help trying to use gcc from any location !
Pikesh Patel (1 year ago)
try this https://www.youtube.com/watch?v=pDk7GnCD648&t=29s
Nikhil Nambiar (1 year ago)
i just want to know if we try to create a dynamic library will give a .so or .dll
suraj ranvare (1 year ago)
thanx a lot buddy video was really helpful!!!!!!!
Antonio de Haro (1 year ago)
Thx very helpful tutorial :)
Reginaldo Torres (1 year ago)
Thank you very much for your help my fried!
peacejustice (1 year ago)
Thank you very much for your excellent illustration. I am helped a lot by you.
Hamid Davoodi Shandiz (1 year ago)
Very very good thanks
Mr Siba Prasad (1 year ago)
I have created the 'path' in advanced setting>Environmental variables, but still it executing and says 'not recognised...' It does not show up in 'echo %path%' also. Any help??
EduPark Krupesh (11 months ago)
https://youtu.be/TOeKtN6Vir4 Follow this very easy tutorial
Honus Wagner (1 year ago)
This Worked For me. I Copied exactly your method. I am using version 13.12.
Captain Trigger-troll (1 year ago)
awesome tutorial, thanks. thumbd upx2!
Hacker cyber (1 year ago)
learnt about much more for so less excellence
Ian Fogelman (1 year ago)
Thank you for making a informative video on this topic, I have been searching for a while on how to do this.
Jameel Hassan (1 year ago)
thanks it was really helpful
marika bregvadze (1 year ago)
great tutariol
חיים בלולו (1 year ago)
Thanks
יעקב A (1 year ago)
Thanks man , very helpful guide .
Mehdi sh (1 year ago)
thx
Pea Stone (1 year ago)
The title should be GCC compiler in Windows with Code::Blocks. The reason is, if one wants to not run an IDE or just run a text editor it makes searching on youtube easier.
Mercyritz13 (1 year ago)
One of the things that has not been mentioned in the above video is to change your directory before you compile. The part where ">c:\..." is usually set to the users folder in C: file. One way to change directory is to type following commands: cd\ Typing the above command will change the directory to "C:" only cd \MinGW\bin\cfiles Typing the above command will change the directory to "C:\MinGW\bin\cfiles" Here: cfiles is the folder which you've created to save your files like "hello.c" etc Now you can compile your c files. Always check which directory you're in before compiling! Thanks for all the help to whoever created this video!
Dan Verrette (1 year ago)
Thank you!
Almpertis (2 years ago)
thank you very much, your video is very helpful. The only difference in windows 10 is that when you edit path, there is a list of paths where you can click "add" and paste the minigw directory without using the ";"
Alal Malal (1 year ago)
thanks
Dominik Kolb (2 years ago)
great video thanks!
George Lensgraf (2 years ago)
man i found out ls doesnt work to list my contents of folder in commandline. i had to use dir. he used cd and a space and typed the name of his folder. didnt work for me, i had to type cd\(backslash)and just copy my path from explorer to change directories. i got a ton of errors when finally typing in compile command. mostly such and such was not declared in this sccope kind of errors and a does not name a type include<iostream> i deleted on my test.cpp file what it declared was not in scope but the does not name a type include<iostream> has me baffled. here i come google
Lowinator (2 years ago)
Good job, works like a charm.
Dunzhi Chen (2 years ago)
Thank you a lot!
Yogendra Itankar (2 years ago)
Very good tutorial. Thanks a lot!
meriem karoun (2 years ago)
Thank you :)
Shayne Williams (2 years ago)
this outdated videos man, when i click path, everyone just says "Tag on this and you'll be fine" when i click edit path, a bunch of shit comes up
Shayne Williams (2 years ago)
well i don't know what version of windows you're using, or what you did tbh, i just figured out how to do it in linux so i don't have that problem anymore lol
Dominik Kolb (2 years ago)
just tried it and it worked perfectly fine dude
Mohammed Imroz (2 years ago)
#sir my first program is not work plzz help
Danushka Stanley (2 years ago)
Thank You very much for the video (Y)
Imam Taufiqurrahman (2 years ago)
why im cant use commend "ls" in my cmd?
Danushka Stanley (2 years ago)
just type "dir" u will see the same
Vaibhav Jawale (2 years ago)
Thank you so much. This video is really very helpful. Just make it a little short.
Shubham Budhiraja (2 years ago)
really good for new programmers
HT Kevo (2 years ago)
Thank you
rajkumar bansal (2 years ago)
Thanks.. it is simple and concise. for c gcc -o executablefile_name sourcefile_name.c for c++ g++ -o executablefile_name sourcefile_name.cpp
NanoDutcher (2 years ago)
work not
Stefan Pedersen (2 years ago)
hello.c:1:20: fatal error: Studio.h: No such file or directory  #include <Studio.h>
vishal sharma (2 years ago)
i have installed eclipse, java,cygwin but when i am compiling code in eclipse it is showing an error the , program gcc not found in path and program make is not found in the path. plz help me in it
karan hemdev (2 years ago)
a big thanks...
Diane Baldesco (2 years ago)
HELP! On the box that pops out after clicking edit, this is what's inside: %SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
anjeza mimini (2 years ago)
+Diane Baldesco what happens if u go to command promt and write PATH ? if u add the new path there it doesnt works?
Daniel (2 years ago)
thanks
Wiam Khader (2 years ago)
You have installed code blocks why not use it!!
Andrew Dunkin (2 years ago)
Because real programmers learn to use the compiler on a command line first ;-)
Alfred Lefosa (2 years ago)
that was helpful. thank you
maidanezul roman (2 years ago)
ty man it really helped me keep up doing tuturials
Shriya Katoch (2 years ago)
when i type ls it says that this is neither an internal nor an external file ?
Daniel Daigle (2 years ago)
+Shriya Katoch have to download unix commands such as unxutils or just use the command dir
Lynas Con (2 years ago)
thanks a lot
Utkalika Samal (2 years ago)
thank you so much.its very helpful.
Good work. What problem you faced when you directly installed mingGW? I haven't installed code blocks, but I have installed the cygwin sometimes ago which included the mingW. That mingGW installation works fine. Thanks a lot.
Nakul Agham (3 years ago)
Thanks a lot for your help..! :)
Akros Producer (3 years ago)
Thank you!!!! ;-)
María Pereda (3 years ago)
I had this error while trying to compile the example in Win 8.1 error: 'system' was not declared in this scope which I solved adding this include to the example code: #include <cstdlib>
MW RAPTORFURY (6 months ago)
where should i add the code
dimi dimi20 (3 years ago)
very helpful for new programmers! thank youuuu :)
VanRibbeck (3 years ago)
Danke
Arvind Rebel (3 years ago)
does it work in windows 8 please answer
Ankita Agrawal (2 years ago)
+Arvind Rebel yes
cRaZyLiKeMe525 (3 years ago)
after an hour of trying to install and use the compiler by myself, I finally asked google: thanks for the help! I get it know! :D
Ninad Deshpande (3 years ago)
Thanks alot dude! It was really helpful. Keep up the good work.
Ghifari Rahadian (3 years ago)
thank you so much :)
Alfredo Pereira (3 years ago)
Sorry but I have been out of coding for a while and trying to help a friend compile a cpp file. Are you running linux layered on top of a windows 7 OS ? I am asking because when you popped the cmd window you did and 'ls' command, which is a unix command that does not work in Win7. And if this is just a unix compiler then do you have a video for installing a directly compatible Win7 compiler ? Thanks.
Lelouch Britannia (3 years ago)
Thaks, u help me of more
Cyrez Ronquillo (3 years ago)
Is there a compiler similar to this but is also compatible in win8? :)
Mahadevan Annamalai (3 years ago)
wow really very helpful . i got it thanks your heartful help
7guitarlover (3 years ago)
thank you so much !!! keep up the good work .

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.