I sort of use it on smaller stuff but it's not nearly as smooth as using GCC on Linux. It really is impure and dirty and third party libraries never seem to just work unless you're willing to hack through them, which introduces more uncertainty which is why I simply don't dare use it for any production stuff, only for hacking around with C++ functionality on Windows. I can't even recall getting boost to work with MingW, and boost is a pretty freaking core C++ library.
Ugh... if Microsoft just had a standard compliant C compiler and shipped a version of the Win32 API that respected those standards the situation would be much much better.
Are you doing something wrong? I've been using MinGW for years and I haven't had an issue. And considering /u/STL has a distribution for MinGW with many libraries, I'm convinced that MinGW isn't the problem here.
I'm definitely doing many things wrong, but it's very hard to do things right in MinGW.
Obviously people have managed to get it to work including /u/STL and many others, but if you're in a situation where you're writing code that will ship out to actual paying customers who rely on your software to simply work and work properly, then using MinGW for C++ is a risk.
Out of curiosity have you ever managed to get the C MySQL connector to build in MinGW? That has caused me innumerable headaches to the point that I just gave up and got a pre-built version of it but heck if you know how to build it I'd appreciate knowing.
For what it's worth, this was about five years back. But I remember finding it to be a bit of a pain as well. I primarily came from a linux/server background and was expecting a somewhat similar experience with mingw. It....wasn't. In particular, as you say, 3rd party libs were really the biggest pain. cygwin pretty much just worked. But it's also quite possible that my platform bias was causing some of it.
6
u/[deleted] Apr 22 '14
I sort of use it on smaller stuff but it's not nearly as smooth as using GCC on Linux. It really is impure and dirty and third party libraries never seem to just work unless you're willing to hack through them, which introduces more uncertainty which is why I simply don't dare use it for any production stuff, only for hacking around with C++ functionality on Windows. I can't even recall getting boost to work with MingW, and boost is a pretty freaking core C++ library.
Ugh... if Microsoft just had a standard compliant C compiler and shipped a version of the Win32 API that respected those standards the situation would be much much better.