# Does MinGW support the C++0x libraries?

This topic is 2880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Was using Visual Studio 2010 but I'm sick of waiting for a C++ refactor tool or an IDE integrated C++ unit test framework (that doesn't only work in C++/CLI), and they're not even in the VS2012 preview so I made the jump to Eclipse with CDT and MinGW as a compiler and it worked awesomely for editing code. Problem is that I can't seem to be able to access the new libraries that used to work fine with Visual Studio 2010. For example, the <random> header file exists but a bunch of #ifdef macros exclude the whole file.

The C++0x features implemented in G++ (lambdas, auto, etc.) all work fine, it's just the libraries that look inaccessible.

Are those libraries actually implemented for MinGW? Am I just missing an option in the g++ command line? (I'm using std=c++0x, is there another one?) Help!

##### Share on other sites
Refactoring(and much more) is available in VS2010 via Visual Assist(pluggin).

Can't help you with eclipse, I'm waiting for Clang to support lambda's before I give that a shot.

##### Share on other sites
Well, MinGW is really just a port of GCC, so you are really using that. I suggest MinGW-w64, specifically this distribution http://tdm-gcc.tdragon.net/. It supports compiling 64-bit binaries.

It's a much better compiler than Visual Studio IMO. It does support C++11, much more than VS2010, who's C++0x support is actually quite pathetic. All you have to do to enable support for it in GCC is use the -std=c++0x option when compiling.

• 15
• 21
• 22
• 11
• 25