Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Win-builds vs MinGW-builds

Tags:

Does anybody know the difference between Win-builds and MinGW-builds? I'm really interested in C++11 (14) compiler for Windows, but unfortunately MSVC is not yet fully C++11 compliant.

like image 909
Elvis Dukaj Avatar asked Dec 10 '13 13:12

Elvis Dukaj


People also ask

What is Win build?

Win-builds is a large distribution of binary packages for Windows. All of them are built from source. Win-builds provides a package manager and runs on Windows, MSYS, Cygwin and Linux. It is entirely free software. Version 1.5.


1 Answers

The difference is simple: they have little bit different goals.

In particular, if you want to develop on Windows (i.e. don't need cross-compilation), then you better off with MinGW-builds project which essentially provides several feature-rich variants of the MinGW-w64 toolchain. The table in the link gives good summary of the features I'm talking about. You can basically pick the compiler based on your requirements to addressing model, threading model, exception model. I consider it mature and stable as I use it for everyday work and I'm very satisfied with the quality.

On the other hand, Win-builds project's primary goal seems to be cross-compilation. You'll notice that in their thesis in the link, and you'll also notice that it is less feature-rich than MinGW-builds, hence you have less flexibility with it. It is also relatively new compared to MinGW-builds, so I would expect to potentially experience some issues with it.

NOTE: Please, understand that both of these projects are simply builds (distributed ready-to-use binaries) of the MinGW-w64 toolchain (GCC port for Windows which supports both x86 and x64 targets) on whose web-site both links above are pointing. They are provided only for user convenience, so that we (users) don't have to hassle with compilation of the MinGW-w64 toolchain ourselves, but nobody prevents you from doing that if you're experienced enough and know what you want.

For further reading on related topic and C++11, I would recommend my other answer which you might find interesting.

Good luck.

like image 182
Alexander Shukaev Avatar answered Nov 24 '22 06:11

Alexander Shukaev