Lập Trình Linux

How To install MinGW on Windows 10 (GCC & G++)




This is a short guide on how to install MinGW and MSYS using the latest stable.
Download the MinGW installer from (As of this writing, the download link is a bit difficult to find; it’s under “About” in the menu on the left-hand side). You want the file entitled “Automated MinGW Installer” (currently version 5.1.4).

Run it and install MinGW. Only the basic package is strictly needed for Cython, although you might want to grab at least the C++ compiler as well.

You need to set up Windows’ “PATH” environment variable so that includes e.g. “c:mingwbin” (if you installed MinGW to “c:mingw”). The following web-page describes the procedure in Windows XP (the Vista procedure is similar):

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

Nguồn:https://ftlinuxcourse.com/

Xem Thêm Bài Viết Khác:https://ftlinuxcourse.com/lap-trinh-linux

Tổng Hợp
Hướng dẫn tra cứu thông tin người nộp thuế- gdt.gov.vn
Tin HOT
Gạc Ma: Ký ức bi tráng | VTC1
Lập Trình Linux
Introduction to Linux and Basic Linux Commands for Beginners
  • I was startled and thought this compiler was malware when I went to install it from this sketchy ass site… Why can the devs not spell "licence"?… I've always used mingw with codeblocks, and have never had to come into direct contact with it.

    Thank you for this video, and thank you for communicating clearly and not being a douche.


  • DavidDavid

    Author Reply

    Thanks for the help. Very clean and thorough!


  • why does window not do this path var thing automatically, never having this kind of problems on linux or unix


  • All the time I've got this : http://prdownloads.sourceforge.net/mingw/make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma?download: opened with unexpected status: code = 403


  • For those for whom "ls" doesn't work in CMD, use "dir" instead.


  • fuck you


  • You are a life saver!


  • Thank you so much!

    The part at 11:10 really helped me. I didn't know you had to click new to add a path.i was adding paths via the semicolon method and it did not work


  • abyaby

    Author Reply

    very well explained
    Thanks alot


  • The installer is outdated. Go to the SourceForge page of MinGW-W64


  • the download button doesnt exist for me here is the link
    https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/


  • After 2 hours I finally fixed it!! Thank you Sir!! you helped me so much!!


  • 25/5000

    Straight to the point! Congratulations


  • Thanks a ton 🙂 you helped to fix my code issue


  • very helpfull, thank you


  • Dude, thanks a lot, I tried a bunch of different tutorials but yours was the only one that worked.


  • in vscode its giving me path errors, idk how to fix, and its asking me to install clang so now i'm at LLVM download page..


  • Oh my god, for Linux just "apt-get install g++"


  • how can i export my exec codes ? .. i can't run my .exe in others systems because i need 100000 DLLs … >:/


  • At about 4:30, he checks everything…
    Don't. If you just want mingw for C++ – click the "basic setup" option on the left. You won't need any of the things he instructs you to install – Ada, Fortran, Objective-C. Those are completely different languages you will not need, but if you do need them you can re-run the installer and install just those (as you will have the dev toolkit set up from when you installed C++).

    It won't hurt anything – but it's a waste of time. I'm guessing because this 'worked', they didn't bother to find out you can click one button on the left and just be done with it.


  • Everytime I try to compile it makes a 16 bit exe file which my 64bit machine can't run please help

    Edit: Nvm solved my own problem I was making a .h file instead of a .c


  • when i run the code "gcc -o c.exe main.cpp" it says "g++: error: CreateProcess: No such file or directory". Please help urgently


  • code blocks is way simpler and user friendly for new programmers i guess


  • ARE YOU AN ANGEL?


  • Still shows gcc is not recognized at internal or external command.
    Any help?


  • Good video. To get latest features, sometimes need to use the switch -std=c++11 for C++ 11 or -std=c++14 for C++ 14, etc.


  • How to compile and run fortran code?


  • Thanks for the tutorial! Short note: in my case I needed to reboot Windows to get GCC to work after adding its path to the system variables.


  • Thanks, I was getting lost in these Visual Studio C++ compilers with unorganized documentation. MinGW was just what I was looking for. Thanks for showing us this easy solution.


  • cant even access the site coz it says forbidden


  • Thanks a lot.You saved me.Very very much appreciated.


  • What is the role of -o ?
    And doesn't Atom allow you to build your source code?


  • I just installed atom…and i am confused….i want c++ and javascript…..any suggestions?


  • You've saved my life. I used to work on MacOS and now I'm currently programming on Windows. This helped me a lot. Thx! <3


  • Thank u 🙂


  • ¡Mil gracias por la ayuda! me quedo todo muy claro 🙂


  • Thank you so much!!! 🙂


  • When I type gcc, I'm getting the message " 'gcc' is not recognized as an internal or external command, operable program or batch file" in the command prompt on Windows 10. I followed the direction in the video completely and I downloaded it from SourceForge. I'm not sure what I'm doing wrong. Any suggestions would be much appreciated.


  • Man Tell me something! why too much stuff to do. dev c++ is so simple!


  • Please tell how to compile python code


  • Thanks Mate! Very useful!!!! 🙂


  • 🚨WARNING🚨You're supposed to edit the user variable path not the system variable path!


  • thank u for your tutorial mister,


  • How did you get bash commands to work on windows?


  • DouDou

    Author Reply

    Thank you so much~!!! It is a perfect tutorial. Finally I can build codes on cmd.


  • in the c++ code,before int main,you can type:
    using namespace std;
    with that you don't have to type std:: everytime before cout and endl;