Archived

This topic is now archived and is closed to further replies.

xiaoken

Which compiler?

Recommended Posts

I''m trying to learn C++, and I am wondering which compiler I should choose. I would like to get commercial ones as I assume its better then free ones, but on the other hand I still new to all this so I wonder if commerical compilers would be in itself a challenge to pick up. What was your first compiler choice(s)?

Share this post


Link to post
Share on other sites
quote:
Original post by xiaoken
I would like to get commercial ones as I assume its better then free ones


Some are, some definitely aren't.

quote:
but on the other hand I still new to all this so I wonder if commerical compilers would be in itself a challenge to pick up.


You still have to deal with the language, with how the compiler actually handles the language, and with the compiler bugs.

quote:
What was your first compiler choice(s)?


'Odin' - for Thomson MO5.

Oh, you said C++ - g++

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]


[edited by - Fruny on October 21, 2002 12:08:56 AM]

Share this post


Link to post
Share on other sites
If you''re using Windows, I recommend Dev-C++ (available from www.bloodshed.net). It seems fairly full-featured (it''s an IDE featuring the Mingw compiler), and although it''s not my favourite environment (I''m fond of my VC++ 6.0), it''s good and it''s free. (Compared to VC++ 6.0, it''s probably more standards compliant, too.)

Share this post


Link to post
Share on other sites
I would reccommend using one of the following compilers:

1. Microsoft Visual C++
2. Borland C++
3. DJGPP (haven''t figure out how to set this one up)


I would mostly recommend Microsoft Visual C++ but Borland is good too! Good luck!


Pod Buster

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Go Visual studio ONLY!!! For this very simple reason. You are programming windows, and who knows windows better than the ones who created it? Or for this even more important reason, 99% of ALL companies use it.

Share this post


Link to post
Share on other sites
Whatever you do dont use Visual C++ because it does not follow the standard convention in all cases. Learn it the right way then if you must, learn it the microsoft way.


Just my two cents.

"... thats the rub...

Share this post


Link to post
Share on other sites
Hahaha... I think both of the previous two posters are a bit overzealous in their advice (and, as usual, the anonymous poster has all the writing skill of a retarded badger).

Visual Studio has its pros and cons.

True, Microsoft made it. So what? Anyone with half a brain can understand and program for the Win32 API. And it isn't like they took the same people who made Windows and had them build Visual Studio. There are compilers that work better than the native one (Intel's compiler comes to mind) and IDEs that other people prefer more (Dev-CPP comes to mind, tho there is contention over that).

As for VS' infamous standards incompliance: eh. It is what I would call "pretty close". That is to say, going from Visual C++ to some other compiler will NOT be a major leap. You won't have to do extensive relearning.

In conclusion: Go with whatever you have access for. Decide whether you want to plunk down $100 for an academic version of VS, or go for the free Bloodshed/Dev-CPP system.


Don't listen to me. I've had too much coffee.

[edited by - sneftel on October 22, 2002 2:47:07 PM]

Share this post


Link to post
Share on other sites
Don't use Visual Studio. Here's what I got when I first started learning C/C++ using Visual C++:

ME: "Let's see what tutorial1.cpp does."
VC: "Do you want to create a default workspace?"
ME: "Workspace? What's that?" "No."
VC: does nothing....
ME: "Damn, let's do it again..."
VC: "Do you want to create a default workspace?"
ME: "OK, 'Yes' this time."
VC: runs the program. ends.
ME: "cool."
ME: after that. "Damn! what are all these stupid files doing here and messing up my tutorial folder? .dsw? what is this?"
ME: getting confused..."Does workspace has anything to do with C++?" "Why can't I just compile ONE file, and see what it does?" "Is C++ that complicated that it requires more than ONE file just for a 'Hello World'?" "Why are these people on the internet keep giving one .cpp file and tell me to compile it. They don't mention anything about workspace..."

ME: "Let's make a 'Hello World' of my own."
VC: start the dialog asking the project name.
ME: "Hm..since this is just a 'Hello World', I do not want a project. New File instead."
VC: displays an empty document.
ME: done coding. press the compile button.
VC: "Do you want to create a default workspace?"
ME: "Arrghh!!"

Yeah, very stupid, but that actually what was happened to me. I did learn C/C++ NOT from Visual Studio (I'm using it though), but from Borland Turbo C++ 1.01. It's FREE, easy to install (one installation file), and easy to use. Press compile, viola! A "Hello World" on the screen.

I tried DJGPP or the free Borland C++ 5.5 that time, but people told me: "OK, download this file, that file, this, that, this, that, unzipped them in the same directory, run this .exe, use /a /b /c /d /e commands"
ME: "damn...so..complicated...I just want to see 'Hello World'..."
even worse..
EXPERT: "RTFM."
ME: "RTFM? I don't understand a bit! What are those C++ jargons mean?? I just wanna see a 'Hello World' !!"

Then I heard about this IDE called RHIDE..but still "download this file, that file, this, that, this and that, unzipped them in the same directory" without those arguments though
I don't know if they have made a simpler version now, but that was what I got when I started.


My compiler generates one error message: "does not compile."

[edited by - nicho_tedja on October 22, 2002 4:29:41 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The retarded badger is back ;-) No, clue.. please.. Go look for a job and put Dev-CPP in your resume and see how far it helps you. No, job?? well, don''t be so surprised. Your point is lost in a blissfull abyss of ignorance. Most companies would prefer their would be employees to know the tools they use from the beginning no matter what you might think of it. Sorry, but this is the way it is.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
...put Dev-CPP in your resume and see how far it helps you...


I will not put Dev-CPP in my resume, or Visual Studio, or Borland C++. I would put "an RTS game of my own. Include in the CD."

quote:

Most companies would prefer their would be employees to know the tools they use from the beginning no matter what you might think of it



Agree on that. But I would never bother to apply for a PS2 game programmer position due to the fact that I''m a Windows (DX) programmer.



My compiler generates one error message: "does not compile."

Share this post


Link to post
Share on other sites
I have got both Dev-CPP, and an intro/demo of Visual Studio.
If you have a book on Visual Studio, like i do, then that is probably the best.
But, as said before, Visual Studio is very complicated, without the book i wouldnt of had a clue, even now i get a compile error for:

#include <iostream>

Wich in Dev-CPP i dont. But anyway, in my opinion:


Dev-CPP is best for beginners and

Visual Studio is best once you''ve learnt from Dev-CPP, or if you have a book 2 help.


Now im only a beginner so as you can imagine ive not decided, only cos i have the problem with Visual Studio, otherwise id use that, its wat the book teaches.It''s "Game Programming All In One", good so far, only bout 10 pages through it though(out of over 952).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Dev-Cpp is very simple to use, most people have difficulty installing Borland compilers, you have to set the enviroment yourself and mess with the autoexec. I screwed up my enviroment, everytime I try to access it, it shuts down. I think I removed something inportant while cleaning up my computer. Anyway Dev-Cpp is very simple, does the job, easy to compile and run you code.

I recommend Dev-Cpp for all beginners, even if you have VC++. You will find Dev-Cpp easier and more comfortable to use.

Share this post


Link to post
Share on other sites
Use Visual C++, the only other one I used was Quicy 99 (sucked) but if I can figer it out (I''m only 13),any one can figer it out. Sure it gives lots of dumb errors but I figered then out.
Nick

Share this post


Link to post
Share on other sites
DJGPP was my very first C compiler. Ah, memories. There are times when I miss it.

I think I will use the ASCII fishtank contest as an excuse to play with it again.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Go look for a job and put Dev-CPP in your resume and see how far it helps you. No, job?? well, don't be so surprised.


You don't put 'Dev-CPP' nor 'MSVC' alone in your resume. First you put the platforms you can program for, the languages you know, the APIs you know, and only then, if relevant, the specific development tools.

Learning to use a tool is trivial, knowing what to do with one is more challenging.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]


[edited by - Fruny on October 22, 2002 11:23:58 PM]

Share this post


Link to post
Share on other sites
Ive tried all of the mentioned compilers and only one works as I expected, was easy to setup and get working and compile my first program for FREE, and thats Dev-C++
Ive been using it for years.. Ill never switch!

I find this extremely amusing:
" 99% of ALL companies use it."
" Go look for a job and put Dev-CPP in your resume and see how
far it helps you. No, job?? well, don''t be so surprised."

HA! I wonder why that is? I dont know how this industry can "settle" on any "standard" software when there are so many choices and usually better or cheaper options at that. This argument is no different than comparing, say, Photoshop to Paint Shop Pro. Both can do EXACTLY the same things, either can fill an art portfolio or make textures for your game, but one is a really overpriced piece of bloatware, and the other is all the functionality at a fraction of the price. Yet "they" go with the crap app because "john carmack used it" or "in theory it can take advantage of two processors at once, erm, just not here.." whatever retarded reason that particular company has to buy and use $700 software and feel "professional". If you use less "mainstream" tools, you must not have the skills, right? I hate that.. You''re like the guy at this part-time job fair I went to, who told me I absolutely NEED heavy duty resume'' paper or Id have trouble finding work. I will never work for whiney bitches like that! (And yes I found a job despite that "problem")
Sometimes we must rage against the corporate machine, my brothers.. Adobe and Microsoft are not the only companies( or even the best companies) writing software for us..


"our point is lost in a blissfull abyss of ignorance."
You couldnt have said it better

Share this post


Link to post
Share on other sites