I understand that this is an old question. However, this is due to the fact that the question was repeatedly repeated.
I found after many studies, which, by that time, years later, both compilers are usually installed by default when installing mingw from your repository (i.e. synaptic).
You can verify and verify by running the Linux locate command:
$ locate -r "mingw32.*[cg]++$"
In my default Ubuntu installation (13.10), I have the following compilers that you select from ... found by issuing the locate command.
/usr/bin/amd64-mingw32msvc-c++ /usr/bin/amd64-mingw32msvc-g++ /usr/bin/i586-mingw32msvc-c++ /usr/bin/i586-mingw32msvc-g++ /usr/bin/i686-w64-mingw32-c++ /usr/bin/i686-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-c++ /usr/bin/x86_64-w64-mingw32-g++
Finally, the minimum that you need to do on many systems will be executed:
$ sudo apt-get install gcc-mingw32
I hope that many links to this page can save many programmers from searching time.
LD James
source share