Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
Define "best"...
Also define your operating system...
Microsoft has a good free compiler, but if you're working on unix or mac that will do you little good.
Borland has a good free compiler as well.
What do you want from your compiler. Some have better standards compliance, others may generate faster applications or smaller ones.
jwenting
duckman
8,522 posts since Nov 2004
Reputation Points: 1,656
Solved Threads: 345
Skill Endorsements: 19
Define "best"...
Also define your operating system...
Microsoft has a good free compiler, but if you're working on unix or mac that will do you little good.
Borland has a good free compiler as well.
What do you want from your compiler. Some have better standards compliance, others may generate faster applications or smaller ones.
I go along with that.
I have tried out several free compilers and feel most comfortable with the Dev-C++. The total package is relatively small in size and comes in windows and linux flavors. For me it is perfect to test out the limits of the C++ language. It compiles fast and makes experimentation easy. I also recommend it to my students.
http://sourceforge.net/projects/dev-cpp/
If I would produce a program to sell, I would spend the money and buy a professional system from Mister Bill.
Some other free compiler systems try to take over your computer, smearing their files all over, that I don't like!
vegaseat
DaniWeb's Hypocrite
6,475 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,611
Skill Endorsements: 36
jwenting
duckman
8,522 posts since Nov 2004
Reputation Points: 1,656
Solved Threads: 345
Skill Endorsements: 19
Some other free compiler systems try to take over your computer, smearing their files all over, that I don't like!
you probably refer to the Microsoft VC++ free compiler. It doesn't do anything except upgrade (if required) your .NET runtime environment which is a good thing (if it didn't something else would do it sooner or later, probably Windows Update).
jwenting
duckman
8,522 posts since Nov 2004
Reputation Points: 1,656
Solved Threads: 345
Skill Endorsements: 19
you probably refer to the Microsoft VC++ free compiler. It doesn't do anything except upgrade (if required) your .NET runtime environment which is a good thing (if it didn't something else would do it sooner or later, probably Windows Update).
Now, as you mention it. I was referring to the free VC++ Express beta package that tries to install a beta version of the SDK version 2.0. It looks like different versions of the SDK can not peacefully coexist on the same computer. Do you have any experience with this?
vegaseat
DaniWeb's Hypocrite
6,475 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,611
Skill Endorsements: 36
no, I haven't tried that.
But I'd not be surprised as the SDK needs the runtime (during debugging sessions for example).
Newer runtimes may well be able to substitute for old ones so as long as you install them oldest first you may be fine.
jwenting
duckman
8,522 posts since Nov 2004
Reputation Points: 1,656
Solved Threads: 345
Skill Endorsements: 19
Never use old Borland C++ compilers (except for dog fights with deviations of C++ standard).
The best free C++ compiler + IDE now is VC++ 2008 Express edition, of course. Regrettably, its distribution size is ~200 Mb + ~200 Mb for MSDN Expess (if you want more than rudimentary help) + ~150 Mb of Windows SDK (if you want Windows API).
Otherwise I think the best choice (especially for beginners) is Code::Blocks IDE with MinGW port of GNU C++ compiler. It's a compact and relatively well-supported system.
http://www.codeblocks.org/
Dev-C++ IDE (with the same MinGW ported compiler) was a good choice some year ago. As far as I know it's a frozen project now (old versions of MinGW etc).
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,239
Solved Threads: 349
Skill Endorsements: 6
If everyone is giving opinions, I would also cast my vote to GNU GCC
If you are on a Linux, you probably already know about it.
GNU g++ is the command line compiler. But there exists various IDE like Dev-C++ which uses GNU g++ as the compiler.
I personally use a normal Text Editor and Commandline.
But you may also like to have a look at CodeBlocks which is a free IDE.
On windows, there exists MinGW as a port of G++.
So, if you ask me a good compiler on windows, my opinion goes with
MinGW gcc, with CodeBlocks
http://www.codeblocks.org/downloads/5
Although, compiler's completely depends on taste of the programer.
I am sorry ArkM , I didnt notice you already have told him about GNU g++
siddhant3s
Practically a Posting Shark
816 posts since Oct 2007
Reputation Points: 1,486
Solved Threads: 140
Skill Endorsements: 9
So guys, Can you please tell the output?? Which one you found out as the best one for C++?? I am also a C++ Beginner.
What output? Had you bothered to read this thread you would have seen that it's not about output, but about compilers.
Which one is best? The answer is: it depends..
Ancient Dragon
Achieved Level 70
32,137 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
Get your Mingw compiler for cross platform (In Linux you have already GNU GCC). If you love bundles get your CodeLite IDE or Code::Blocks IDE.
Stefano Mtangoo
Senior Poster
3,731 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0
Dev-C++ is not a compiler.
You should try having reasons for your opinions in the future, it's a better strategy for being right.
Rashakil Fol
Super Senior Demiposter
2,732 posts since Jun 2005
Reputation Points: 1,153
Solved Threads: 182
Skill Endorsements: 25
Oh stop being so mean, Rash! :-P The least you can do is be more welcoming to our new members :-P
Welcomegeeklord and markwlering. Don't mind Rash. He's our resident troublemaker.
Dani
The Queen of DaniWeb
21,343 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 367
Skill Endorsements: 122