> > i thought gcc was both a c++ and c compiler. > > They both come as part of the same software package, but there are > different front-end executables. Actually, gcc will still invoke the C++ compiler if it recognizes a file as a C++ file. g++ will compile even .c files as C++, and it will also link the proper runtime libraries. Regards, Martin