|
-
September 8th, 2010, 05:41 PM
#1
What C++ compiler do you use and which you think is the best?
What C++ compiler do you use and which you think is the best?
-
September 9th, 2010, 02:14 AM
#2
Re: What C++ compiler do you use and which you think is the best?
This section is for visual C++, so there is a big change that almost all of users here use the visual C++ compiler.
Last edited by Skizmo; September 9th, 2010 at 03:31 AM.
-
September 10th, 2010, 04:52 AM
#3
Re: What C++ compiler do you use and which you think is the best?
Actually this is the "C++ (Non Visual C++ Issues)" section. 
Having said that, I still use Visual C++ 2005 Express.
-
September 10th, 2010, 04:58 AM
#4
Re: What C++ compiler do you use and which you think is the best?
 Originally Posted by Zaccheus
Actually this is the "C++ (Non Visual C++ Issues)" section. 
The thread was moved.
-
September 10th, 2010, 05:35 AM
#5
Re: What C++ compiler do you use and which you think is the best?
I usually just stick to GCC/MinGW because it is very standard compliant, and compiles very efficiently in release mode, and is very easy to configure.
When I have some doubts on some compliance, I switch to comeau online.
Finally, whenever I need some heavy debugging, I use VStudio2008, because the IDE debugger is just so ridiculously powerful and easy to use. I never compile a release with VStudio though. Unless you know the 10000 configuration options, the release will not be at max efficiency.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
-
September 10th, 2010, 04:41 PM
#6
Re: What C++ compiler do you use and which you think is the best?
 Originally Posted by monarch_dodra
I use VStudio2008, because the IDE debugger is just so ridiculously powerful and easy to use
For just that reason I use MSVC for the debugging session. If target is an embedded system I use gcc for the "final" compilation.
-
September 11th, 2010, 01:41 AM
#7
Re: What C++ compiler do you use and which you think is the best?
GCC and G++ are the way to go, there is port to win32 and 64, Mingw and works well with either QT IDE or Netbeans C/++.
-
September 11th, 2010, 09:13 AM
#8
Re: What C++ compiler do you use and which you think is the best?
I usually use Mingw and Code::Blocks. You can download Code::Blocks with Mingw already setup with their release versions. The latest is 10.05 as I wrote this.
MSVC does allow for better debugging. If I come across code I can't debug with Mingw, I use MSVC 2008 express. I also use both to make sure my code compiles with no warnings on either compiler and runs after compiled on each compiler. This makes sure my code is even more stable.
0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000 0000 0000 0000 0000
-
September 11th, 2010, 12:08 PM
#9
Re: What C++ compiler do you use and which you think is the best?
I use GCC. It's the best available for Linux and Mac. On windows most programs I write are for MinGW, the only time I use Visual C++ is for 64-bit windows programming and only because there is no pthread port for 64-bit win. It's more a matter of my preference of Code::Blocks to Visual Studios though more than MinGW over VC++
-
September 11th, 2010, 11:42 PM
#10
Re: What C++ compiler do you use and which you think is the best?
I use both Visual Studio 2010 and gcc 4.5.0. Each compiler flags different warnings, and sometimes an obscure error in one will be stated more plainly in the other.
As has been mentioned, Visual Studio has a very powerful debugger; but gcc does the build/cancel/build cycle much faster on my system so it's better when I'm running through a long list of errors and want to rebuild after fixing each. Also, valgrind is indispensable for catching heisenbugs, so its lack of Windows support is a major point in gcc's favor.
-
September 12th, 2010, 12:42 AM
#11
Re: What C++ compiler do you use and which you think is the best?
It's important to separate the compiler from the IDE.
The IDE is responsible for things like syntax checking and debugging, and the compiler is responsible for laying down code. I'm pretty sure even VS sports a separate syntax checker as of 2010.
One cannot compare compilers by comparing the syntax checking and debugging capabilities of different IDE's. To compare compilers one should compare the quality of the code they emit and how C++ standard compliant they are (and maybe how fast they are but that's of secondary importance in my view).
Last edited by nuzzle; September 12th, 2010 at 12:45 AM.
-
September 12th, 2010, 02:31 AM
#12
Re: What C++ compiler do you use and which you think is the best?
I use Microsoft Visual Studio Express and I love how easy it is to view and manipulate variables while debugging. I can still remember how long it used to take me to debug my programs before I realized how to use breakpoints! Life was much easier after that.
-
September 12th, 2010, 12:32 PM
#13
Re: What C++ compiler do you use and which you think is the best?
 Originally Posted by nuzzle
The IDE is responsible for things like syntax checking and debugging
Um, false. Maybe the VS IDE does that, but in GCC, the GNU suite does all of that
In GCC, syntax checking is done by the grammar, which is built into the compiler (g++) and debugging is done by gdb. Most IDEs just hook into them, I don't know any IDE that does either one. In fact, using the GNU suite, you can compile, syntax check, and debug without an IDE at all. I know a few programmers who use vi and the command line to write software.
Besides, the IDE and other features available do make a difference. As Lindley said, the lack of high quality debugging tools like Valgrind for Windows forces a lot of programmers to do their engineering on *nix, so VC++ is out for a lot of us.
Last edited by ninja9578; September 12th, 2010 at 12:39 PM.
-
September 12th, 2010, 12:37 PM
#14
Re: What C++ compiler do you use and which you think is the best?
I suppose that the IDE is responsible for integrating components used for development into a single environment. Some components are more closely integrated than others
-
September 12th, 2010, 03:10 PM
#15
Re: What C++ compiler do you use and which you think is the best?
 Originally Posted by laserlight
I suppose that the IDE is responsible for integrating components used for development into a single environment. Some components are more closely integrated than others 
Yeah, but even then it largely comes down to preference. XCode is by a wide margin the best IDE for me and Eclipse is by a wide margin the worst. But I'm sure other people would say otherwise. I actually prefer Instruments to Valgrind too. Although I use both, sometimes Instruments will show me something Valgrind doesn't and vice versa. Still, nothing on Windows compares to either one.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|