Mingw, A Contraction of "Minimalist Gnu For Windows", Is A Minimalist Development Environment For Native Microsoft Windows Applications
Mingw, A Contraction of "Minimalist Gnu For Windows", Is A Minimalist Development Environment For Native Microsoft Windows Applications
enterprise environment. Therefore I will also privately focus more on C++ and related tools
in the future. For that reason I want to write some blog articles in the future, which should
serve me (and maybe you - the reader) as notes.
In this article I describe the installation of Minimum GNU for Windows (MinGW). In following
articles I will describe how-to use NetBeans IDE for C++ software development and how-to
build and use popular C++ libraries, such as Boost.
So, lets start with the installation of MinGW.
1. Select the button Install. The dialog Step 1: Specify Installation Preferences is
opened.
o
Enter C:\dev\MinGW (or any other valid directory name in the text
input Installation Directory.
1. Select the button Continue. After the installation is finished, the window MinGW
Installation Manager is displayed.
o
Select the list item Basic Setup in the listbox on the left.
1. Select the item Apply Changes below Installation in the menu bar. The selected
packages are installed.
2. Add the path of the MinGW and MSYS bin directories to the user environmental
variable PATH. I recommend to define and/or modify the following two user
environmental variables:
o
And thats it. We have successfully installed MinGW. Now we can test compilation, linking
and running of a C++ application. Of course, we will do that by implementing Hello
World(what else?).
1. Create a new file hello_world.cc with the following content:
2.
#include <iostream>
3.
4.
using std::cout;
5.
using std::endl;
6.
7.
8.
9.
return 0;
10. }
Impressive. We have successfully implemented our first C++ application with MinGW.
Prepare for some more C++ stuff in the future!