Sign in to follow this  
BKrenz

C++ IDE/Compiler

Recommended Posts

Hello all!

 

I'm beginning to delve into C++, and recently ordered this book (due to arrive Wednesday, the 28th). I realize that C++11 has some of the latest and greatest features, and would definitely like to start with that as a base, unless completely recommended against.

 

I have access to VS2012 and 2013 (Up to and including Ultimate) through the Dreamspark program. I'm also not afraid of installing any Linux distros if that would be better suited for accessing C++11 features. 

 

I know VS2012 doesn't support all the new features (and I don't think any compilers really do all the features, yet). When I tried googling, I couldn't find anything really mentioning VS2013's support for it that also compared to other IDEs and compiler.

 

I'm looking for any recommendations on how to proceed here. What do you use for your IDE/Compiler?

 

Thanks!

 

 

Share this post


Link to post
Share on other sites

Depending on your level of programming experience, that book might not be the best choice. If you're already comfortable with programming concepts (variables, control flow, etc) it's pretty good, but it can be a bit overwhelming for a beginner.

 

GCC has the most complete C++ 11 support, but visual studio ( 2012 onwards) supports a reasonable amount of features.

 

Here's a table comparing compiler support for each feature

Share this post


Link to post
Share on other sites

I'm actually decently proficient with C#/Java/Python, so I'm definitely comfortable with a lot of concepts.

 

Like I said, I'm delving into C++, not general programming.

 

And thanks for the advice!

Share this post


Link to post
Share on other sites

I would stick with the VS Ultimate editions as they have a lot of features especially if you can get the 2013 one as that will have some of C++11 and some of C++14.

 

Other decent options are CLang which has a VS plugin as well if you need it, Clang is 100% C++11 compatible and was there before GCC.

Share this post


Link to post
Share on other sites
Clang actually is the only compiler with complete library and core language C++11 support. Gcc has full language support, but the standard library is incomplete. VS is missing language features, but the library is as complete as it can be in light of that.

So for C++11 the best compiler is clang. Clang doesn't work very well on windows though. minGW is Gcc for windows, but that is behind on C++11 features compared to gcc.

IDE-wise, I use eclipse, but that's mainly because it allows me to work in multiple languages conveniently. I hear code::Blocks is good too. Some configuration may be required if on any IDE if you want to change the compiler.

Getting clang or gcc working is probably prudent. That means getting some form of Linux running. A dual boot is easiest to set up, but you can also run a virtual machine or use Cygwin, a Unix emulator for windows. Also be sure to get the latest version of your compiler, which may or may not involve an extra step.

Share this post


Link to post
Share on other sites


So for C++11 the best compiler is clang. Clang doesn't work very well on windows though. minGW is Gcc for windows, but that is behind on C++11 features compared to gcc.

 

Only the official MinGW is lagging behind. http://sourceforge.net/projects/mingwbuilds/ has a very current gcc-4.8.1 based MinGW distribution (which is regularly updated with bugfixes etc.)

 

As an IDE QtCreator is nice, the GDB-integration is great and it supports CMake-based projects.

Share this post


Link to post
Share on other sites

If you're beginning to learn C++ and you have access to Visual Studio I see no reason to not to use it.
VS has really good debugging features, and you don't want to debug code in the command line.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this