How To install MinGW (GCC) in Windows

preview_player
Показать описание
MinGW is a port of the GCC to be used in Windows.

Instructions:
2. Execute the .exe file you downloaded from source forge and click continue.
3. Select both msys packages as well as the basic install. Additional Packages are optional.
4. Install the packages by going to the install menu and clicking "apply changes"
5-8. Wait so long it takes four steps.
9.Run the command 'setx PATH "%PATH%;C:\MinGW\bin;"'
This command will add the compiler applications to the PATH(Windows searches the PATH for one line execution commands eg. "dir" "cd" are all located on the PATH.) We need to add these to the PATH so compilation can be done in one line.

Whatever step this is.

I will break that command down for you. gcc is the compiler for c, helloWorld.c is a file to be compiled, -o is an option for this command that specifies the output file to the second argument given, the last argument is the output file.
Рекомендации по теме
Комментарии
Автор

This is the first tutorial I watched where I could get MinGW to work, so that's a plus. I also appreciate you explaining the different packages available. All I wanted to do was compile c, but thus far, no one has explained anything about which packages do what. They just say to download everything just in case, and I still end up with "gcc is not recognized as an external or internal..."

garrettcarlson
Автор

THANK YOU. I literally searched all over the internet and this stuff isn't explained ANYWHERE. You're the best.

sautjansurarrusinur
Автор

nicely done, no over winded explanations, to the point and well presented. Cool vid bro. Keep it up!

poadra
Автор

"DAEMON isnt my real name but I figured it would be a badass name for my computer
LMAO

worrisomekitten
Автор

Awesome tutorial, had probs with the gcc, this vid helped me in a few mins compared to days fidgeting around on the MinGW site.

Cheers!

SaadatBarlas
Автор

I have been struggling with MinGW for a long time, eclipse wouldn't detect it, I set the variable manually but it didn't help, then I tried your cmd command and it finally worked. Thank God!

jony
Автор

Excellent work! Your video was very clear and easy to follow.

IllustriousMelchior
Автор

Good video, simple and clear, i couldn't get my damn compiler working then i found your video.

rklgdxy
Автор

Helped me out and I love this guy's delivery.

lucasforde
Автор

teaching my self how to program, but figuring out how to use the mingw compiler after I installed it was my biggest issue. You have helped me out so much, than you.

kilroywashere
Автор

Thanks so much. Your helping people even a year later :P

benryangarcia
Автор

Awesome. Like your teaching style. Chilled and simple.

clankwarrior
Автор

Thank you! You were the only easy to follow video instruction I could find.

davidhasbun
Автор

Helped me setup my C environment for my Operating Systems class. Thanks man!

matthewsvihel
Автор

Really appreciate the video!
I was looking up how to do this on the MinGW website and it mentioned to NOT set the path on the SYSTEM env. variable but the USER env. variable, but every video I see on the matter seems to ignore that. I tried doing the SYSTEM env. variable and it works fine without any complications so far so I hope it'll stay that way. (The installation guide is from 2007 so it's possible that any related problems have been fixed)

Wutwutn
Автор

THANK YOU! a bit outdated but this video still helped! the setx command in the command prompt worked like a charm

TenkoSekka
Автор

I could never install it without your help... Thank you bro.

sned_dunes
Автор

Awesome tutorial! Now I don't need to use online C compilers to compile C source codes. Thank you so much!

subhadeepdas
Автор

I love you!!! You're my life saver.

MrPhillips
Автор

muchas gracias!! tenia mas de un año queriendo hacer esto y nunca via podido, por fin podre programar en c++. GRACIAS, compañero.

erickv