What is a good C++ compiler

B5b5085f591e9705782ba371a02692bf
0
victorroemer 101 Oct 20, 2005 at 23:05

I have Visual C++ but its well quite beefy and it really needs a a tutorial on how to get around with it. So what is another good compiler minus my incapability to use Visual c++ at least until I learn the basics.

21 Replies

Please log in or register to post a reply.

B7dcbc0c0f07253f25ff5c25fe38c081
0
SamuraiCrow 101 Oct 20, 2005 at 23:11

Another good compiler for Windows is Dev C++ which uses the MinGW version of GCC. It is free of charge and generates code that is generally as good as Visual C++. The IDE needs some work and there is another IDE that I haven’t used called Code::Blocks. You might want to look into both.

22b3033832c5c699c856814b0cf80cb1
0
bladder 101 Oct 21, 2005 at 00:34

The basics of the VC++ IDE is not that hard to learn. Here’re the basics:
- You start off by creating a new project (FILE MENU -> NEW -> Project)
- Then you choose the language you want to program in and the project type. Assuming C++ and a standard dos prompt program then you choose C++ project and “Console application”
- In the following dialog boxes and tabs seach for a ticker that says “empty project” next to it and make sure that is checked. Also make sure you are not creating a “static lib” or a “dll”
- Then you add a file to the project - (in the case of C++ you either add a header file or a souce file) and start programming as in any other compiler.
- You can link in libraries by writing this line in any file:
#pragma comment( lib, “libraryname.lib” )

If you’re still confused about anything regarding the VC++ IDE then do ask, the basics are not that hard to learn and if you’re going to be using the Windows platform then it really is the best IDE out there hands down.

9de8e2b253a4e0b2b9633c90219319a3
0
Vexorian 101 Oct 21, 2005 at 20:33

Code::Blocks is the best Free c++ ide out there (I actually like it more than Visual studio) http://www.codeblocks.org

And for compilers use mingw.

065f0635a4c94d685583c20132a4559d
0
Ed_Mack 101 Oct 21, 2005 at 22:24

DevCpp http://www.bloodshed.net is a nice and quickly improving IDE.

2b97deded6213469bcd87b65cce5d014
0
Mihail121 102 Oct 22, 2005 at 13:26

EdMack: I wouldn’t call DevCpp “quickly improving” since it has not been updated for quite much time now…

Vexorian: Yes, Code::Blocks is indeed one of the best choices.

I personally use DevCpp.

Da26e799270ce5e8b62659ed77b11cef
0
Axel 101 Oct 22, 2005 at 15:44

@Ed Mack

DevCpp http://www.bloodshed.net is a nice and quickly improving IDE.

Quickly improving? The last version is from february.

D9ccaedf94839b826a130238d887869b
0
bombardier 101 Oct 22, 2005 at 18:23

There is nothing out there that can beat Visual Studio + Visual Assist X.

340bf64ac6abda6e40f7e860279823cb
0
_oisyn 101 Oct 22, 2005 at 20:59

Reality check: I’m a visual studio fanboy, but it’s seriously getting behind on other, more recent IDE’s like Eclipse and Idea. It definitely needs support for features like refactoring and code generation. But Visual Studio 2005 is going to change a lot, I wonder how it’s going to turn out.

That said, nothing beats VS’ debugger :)

065f0635a4c94d685583c20132a4559d
0
Ed_Mack 101 Oct 23, 2005 at 00:42

@Axel

Quickly improving? The last version is from february.

I see the big jumps between versions as making up for that :) Okay, so I just like it a lot..

25bbd22b0b17f557748f601922880554
0
bramz 101 Oct 24, 2005 at 10:47

@.oisyn

That said, nothing beats VS’ debugger :)

I second that sir!

B27f558c693cfdc1061b846405681497
0
m4x0r 101 Oct 25, 2005 at 04:09

@bombardier

There is nothing out there that can beat Visual Studio + Visual Assist X.

How about Visual Studio + Visual Sidekick?

Max

93a772f4602f3e25528acf7d68516066
0
Jordan 101 Oct 25, 2005 at 16:36

@m4x0r

How about Visual Studio + Visual Sidekick? Max

Neat plugin, I hadn’t seen that before. Thanks for pointing it out.

Cd577ee1cb56aa2ad5645b7daa0a2830
0
eddie 101 Oct 25, 2005 at 19:41

Victor, I think your best bet is to tough it out with C++. You might want to try the free trial of Visual Assist (a personal fave, and a bargain at 99$) from www.wholetomato.com.

Really, C++ itself is a daunting language while you’re learning it, but Visual C++ is not really the tough end of it. :) In fact, it’s debugger is quite helpful, and it’s docs are quite complete and relatively well written (I have beefs with their search mechanism, however. I advise using Google on the msdn website however).

Good luck! And ask plenty of questions. :)

4a93ba032c357d782afb0820f328d14e
0
zavie 101 Oct 26, 2005 at 11:41

What about Valgrind ?

Cd577ee1cb56aa2ad5645b7daa0a2830
0
eddie 101 Oct 26, 2005 at 17:18

Valgrind isn’t a compiler, last I heard. It’s a debugger that’s awesome for memory debugging.

That said, I haven’t used all aspects of Valgrind, but I can’t imagine it compiles code.

4a93ba032c357d782afb0820f328d14e
0
zavie 101 Oct 26, 2005 at 22:31

@eddie

Valgrind isn’t a compiler, last I heard.

Indeed. I was just replying to .oisyn and bramz about debuggers. :-)

Da26e799270ce5e8b62659ed77b11cef
0
Axel 101 Oct 27, 2005 at 19:42

Valgrind is very nice, but you can achieve what it does (well, the memory-leak checking) with some source-code tools too. For example Paul Nettle’s mmgr works very well for me.

The other features are something that I surely miss on Windows. MS should implement something similar in Visual Studio.

Da26e799270ce5e8b62659ed77b11cef
0
Axel 101 Dec 15, 2005 at 20:32

Uhm the Microsoft Compiler is free as well (including an IDE).

B7dcbc0c0f07253f25ff5c25fe38c081
0
SamuraiCrow 101 Dec 15, 2005 at 20:47

@ thekingofgaming

DevC++ uses MinGW internally and DJGPP is a DOS compiler that I wouldn’t recommend for Windows development. LLVM is cool for portability but is it set up for a beginner? I think not.

406ad7b52f4ed7443e3971e6b2adf430
0
kariem2k 101 Dec 15, 2005 at 21:11

visual c++ is one of the best(even more when microsoft anounced that the express edition is free) and it very easy to learn the basics.