Hi,
By the process of poking various fingers onto keys Unforgiven generated
this:
This is off topic here, but iirc the difference is that gcc will by default
invoke the C compiler, why g++ will invoke the C++ compiler. <iostream> is a
C++ header, so naturally you can't use it when compiling C.
Not quite. gcc stands for gnu compiler collection. You can run g++ by
itself. Equally, you can compiled source using gcc as well.
For example
gcc foo.c will compile foo.c
gcc foo.cpp with compile the C++ file foo
g++ foo.cpp does the same
gcc foo.f77 (or .for) will compile the FORTRAN file foo
g77 foo.f77 (or .for) will do the same.
In otherwords, gcc is just the frontend to the various backends.
TTFN
Paul