If you see a version number and a copyright notice, congratulations! You have successfully installed the MinGW compiler. Step 5: Compiling Your First Program Create a file named hello.cpp and paste the following code:
Choose posix for better compatibility with standard C++ libraries. download mingw compiler
Open the and search for "Edit the system environment variables." Click Environment Variables at the bottom right. If you see a version number and a
It is free to use for both personal and commercial projects. Compatibility: It supports the latest C and C++ standards. Step 1: Where to Download MinGW Open the and search for "Edit the system
This is the most critical step. Without adding MinGW to your "Path," your computer won't know where the compiler lives when you type gcc into the command prompt.
Under , find the variable named Path and click Edit .