Best C and C++ compiler!

ChatIndia

Community Advocate
Community Support
Messages
1,408
Reaction score
30
Points
48
I have found "Turbo C++" compiler and its a crap. My book example code doesn't work in that compiler. Seems like it is outdated and doesn't support C99. Any best known compiler you recommend to me?
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Yeah..visual studio is good but its expensive.Do you know any other free compiler which is good?
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Well, there's always the GCC (Gnu C Compiler) -- it's available as part of the Cygwin package if you're on Windows. It's free and open source.
 

ChatIndia

Community Advocate
Community Support
Messages
1,408
Reaction score
30
Points
48
Well, there's always the GCC (Gnu C Compiler) -- it's available as part of the Cygwin package if you're on Windows. It's free and open source.

I have installed Cygwin but I am not able to understand it. I use cc command to compile file with .c extension in my debian linux and gcc to compile c++ but none of them works here.
 
Last edited:

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
95
Points
48
Isn't there a free version? VS Express or something?
 

ChatIndia

Community Advocate
Community Support
Messages
1,408
Reaction score
30
Points
48
I have downloaded and installed visual studio 2008 express edition.

I only know "printf" and "scanf" at the moment. please teach me how to compile in visual studio 2008 express edition.
 

freonyeah

New Member
Prime Account
Messages
9
Reaction score
0
Points
1
I have downloaded and installed visual studio 2008 express edition.

I only know "printf" and "scanf" at the moment. please teach me how to compile in visual studio 2008 express edition.

If you search on youtube.com for something like "visual c++ 2008 tutorial" you will find videos that will teach you how to compile and many other stuff. Videos on youtube are very good teaching tools.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
I have installed Cygwin but I am not able to understand it. I use cc command to compile file with .c extension in my debian linux and gcc to compile c++ but none of them works here.

That's what compilers do - are you asking about an IDE to do it for you?
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
There's the up-and-comer, LLVM. Apple has made it the default compiler in XCode 4. You can build it with Microsoft's Visual Studio. The ClangVSx add-in lets you use LLVM from within Visual Studio.

The core of LLVM is a compiler backend, responsible for code generation but little else. You can use the clang frontend for parsing, or a GCC compatible frontend, or another frontend of someone else's devising (which means LLVM can compile from potentially any source language by switching the frontend).

At the start of this year, Cristophe Riccio published a performance comparison of Visual C++, LLVM and GCC.
 

CWeb Creative

New Member
Messages
321
Reaction score
6
Points
0
I have to say that GCC is the best for me its no frills and gets the job done every time.
 
Top