List of C++11 compliant compilers?

Started by
41 comments, last by l0calh05t 10 years, 8 months ago

I'm getting fed up with Visual Studio Express 2012. There are so many new language features that I can only look at in code samples.

Are there any *free* Windows-based C++11 compilers? What are some recommendations?

Advertisement

clang or g++(mingw) would be the most popular free ones that support C++11

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

http://gameprog.it/articles/90/c-11-getting-started-on-windows#.UfqTvKzN4vs for getting started on windows with c++11

else you can download last Qt package and just add the -std=c++11 flag to project file options (you get the mingw 4.8.x package along with Qt IDE).

Peace and love, now I understand really what it means! Guardian Angels exist! Thanks!


else you can download last Qt package and just add the -std=c++ flag to project file options (you get the mingw 4.8.x package along with Qt IDE).

QFE.

QtCreator is one of the nicest of the non-Microsoft IDEs, and you get a shiny new C++0x-capable GCC, into the bargain.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

There is a compiler pack which allows you to use most c++11 features on MSVC 2012, don't know if it is compatible to express version though...

There is a compiler pack which allows you to use most c++11 features on MSVC 2012, don't know if it is compatible to express version though...

That's just a CTP though -- you could play with it, but you can't rely on it for production, and the license forbids distributing programs compiled with it.

OP, have you tried the VS2013 preview? It supports more of C++11 -- indeed all, or nearly all, of the stuff you'd actually care to use. Again, its just a preview, but the real-deal is just around the corner.

That said, even VS2013 RTM won't be 100% C++11 compliant. Frankly, its a really old compiler and it needs some improvements to follow the spec to-the-letter, as well as to make implementing some of the remaining features easier. Herb Sutter's keynote at /Build outlined the road-map for supporting features from C++11 and C++14 (not a standard yet, but some small and valuable additions are firm enough to adopt now), and how they aren't necessarily going to deliver all of C++11 before some of C++14 -- basically, they're treating all the features as one bucket of work, and delivering those features with the most value first. Objectively, that's a better approach to managing their developer resources, but it does mean the sacrifice being able to say they're 100% C++11-complaint a while longer.

throw table_exception("(? ???)? ? ???");

For GCC on Windows I would suggest:

http://tdm-gcc.tdragon.net/

Which is very easy to install. You have your choice of 32-bit only or 32/64-bit. GGC version 4.7.1.

http://nuwen.net/mingw.html

Also pretty easy to install if I remember correctly. Not sure if it supports 64-bit, but it is GGC version 4.8.1 and comes with Boost 1.54 by default.

 

For GCC on Windows I would suggest:
 
http://tdm-gcc.tdragon.net/
 
Which is very easy to install. You have your choice of 32-bit only or 32/64-bit. GGC version 4.7.1.
 
http://nuwen.net/mingw.html
 
Also pretty easy to install if I remember correctly. Not sure if it supports 64-bit, but it is GGC version 4.8.1 and comes with Boost 1.54 by default.

 
Sadly, stopping at 4.7.1 makes TDM-GCC almost as unmaintained as official MINGW releases. The other suggestion, Stephen T. Lavavej's distribution, remains my first choice.

Omae Wa Mou Shindeiru


OP, have you tried the VS2013 preview? It supports more of C++11 -- indeed all, or nearly all, of the stuff you'd actually care to use. Again, its just a preview, but the real-deal is just around the corner.

Far from it. Implicit move generation is pretty important, and ref qualifiers are very helpful for correctness. And no proper constexpr. And no user defined literals. All delayed to post VC2013 CTPs (so not for production code). The saddest part? On the far right (lowest priority/farthest in the future) there are still two C++98 bullet points. Admittedly not that important but that standard is now 15 years old, and Visual Studio still isn't there yet, and I suspect that C++11/14 will take just as long.

Visual Studio is lagging behind extremely.

About Mingw, I usually get my MinGW from http://sourceforge.net/projects/mingwbuilds/ those are very up to date.

Thanks everyone. I think I've settled on Code::Blocks and MinGW. I like the IDE.

I did think about VS2013, but it was fleeting. Microsoft places so many unnecessary and artificial restrictions on the Express versions that it becomes, in many cases, unusable. Now they are limiting DX development and debugging to the paid versions? What's next? I was actually thinking about paying for the pro version until I remember the poor C++11 support. If there are better options, sticking with Microsoft's version gain me nothing but headaches. l0calh05t, they still haven't fully implemented C++98? Really? Yeah, I'll pass.

else you can download last Qt package and just add the -std=c++ flag to project file options (you get the mingw 4.8.x package along with Qt IDE).

QFE.

QtCreator is one of the nicest of the non-Microsoft IDEs, and you get a shiny new C++0x-capable GCC, into the bargain.


I've had Qt 5.1 with MinGW 4.8 for some time now and didn't realize what I had. I really HATE Qt's IDE. I really cannot quantify it, but it just irks me. I wanted to get involved in the Tiled project, but I cannot get past Qt's GUI. I really don't know why. Something about it just irritates me. unsure.png

This topic is closed to new replies.

Advertisement