How to Compile and Run C++ on Windows


This post will help you compile and run/execute C and C++ source code on Windows 10. In the process we will download and install minGW on Windows 10 and set minGW to system environment variable path.

Download minGW Installation Manager

You can download minGW installation manager from sourceforge or from mingw.org. Here is a direct sourcefouge minGW download link. If you do not like sourceforge you can simply perform a web search with your preferred search engine.

Compile and Run C & C++

Watch me install minGW and compile and then run C and C++ source code on Windows 10.