Miscellaneous > Programming & Networking
Kdevelop
slvadcjelli42:
hey, i've had an similar problem (stupid of me, because I went and posted my question before reading this ) Anyway, I was trying to use gcc to compile a hello world style c++ program and it gave me a whole ton of crap about cout and iostream and stuff like that... but then I saw this thread and noticed c++ (as a program)... "whatis" returns the same description for c++, gcc, g++ and cc and yet "gcc" could not compile my program while "c++" could. Any ideas on that? How different are these programs, anyway? Oh, and --version returns the same values for each one, and that stuff about std:: and using namespace std makes no difference for me. :confused:
flap:
gcc is the C compiler, g++ is the C++ compiler. Simple as that.
slvadcjelli42:
$ whatis gcc
gcc (1) - GNU project C and C++ compiler
I guess it was the "and C++" part that threw me off, eh? ;)
Calum:
it stands for GNU Compiler Collection.
as i remember, Stallman took a while on one release of gcc (then it stood for GNU C Compiler) and so Cygnus,who wanted their bugfixes implemented asap took the initiative and forked it, releasing egcs instead (extended gnu compiler something or other) which made for a couple of incompatible GPL compilers and luckily, both parties worked it out quick smart and included the best of both in what is now the new gcc releases.
iamkingbrad:
Well I may be a retard, but it seems to me that the problems raised in this topic should have been dealt with in the first day of learning C++ (or first month, depending how lazy you are). I'm not trying to say that I'm better than anyone else, because I myself am a rather novice programmer (it's amazing how much time I can waste looking at a screen).
You need to start from the start, basically. It appears that you're jumping in without reading through the basics.. you usually need to read to understand concepts. This isn't always the case, but it appears to be in this/these circumstance/s. Use help from others as a last resort, and you'll end up learning a lot more than with just asking people questions straight off the bat.
End of story: I'm an idiot.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version