I have started learning C++. Which compiler do I choose ? I am using Windows 7. Though i have been using Turbo C++, many people suggest that it is not a good compiler to use.
-
2Possible duplicate http://stackoverflow.com/questions/1114860/which-is-the-best-c-compiler – DumbCoder Mar 29 '11 at 09:13
-
Reverting the title like that is a very bad idea - it turns your quite specific question a yet another question with a meaningless title. – sharptooth Mar 29 '11 at 09:20
-
@DumbCoder He did say c++ right? – flight Mar 29 '11 at 09:34
-
@quasiverse - So what is the problem ? The link discusses C++ compilers only. – DumbCoder Mar 29 '11 at 09:50
-
@DumbCoder Yeah... I think something went wrong there. When I hovered my mouse above the link it said "best c compiler". Hmm... sorry about that. – flight Mar 29 '11 at 09:52
4 Answers
You may want to try clang. They focus a lot on expressive diagnostics, which may be especially useful to beginners. However, I am not sure how far along they are, and if any important feature are missing yet.

- 75,346
- 28
- 201
- 283
Visual Studio. Free editions are available as well. The compiler is integrated into an IDE, which is the most complete and intuitive around.
http://www.microsoft.com/germany/express/download/default.aspx

- 4,094
- 1
- 20
- 26
-
1+1, there's no better compiler for learning on Windows than Visual Studio. It has everything you need on top of the compiler, in an easy to use package. – Collin Dauphinee Mar 29 '11 at 10:48
I would always recommend Visual Studio- it has the best debugger and you're gonna need a lot of said debugger.

- 144,682
- 38
- 256
- 465
If you are on linux, g++ (gcc) would be an good choice.
In windows I personally would prefer Visual Studio Express, but you could use g++ here too. Thats more an personal choice which IDE / compiler you prefer, as they all should fit your needs.

- 8,829
- 4
- 31
- 38

- 2,494
- 17
- 17