gcc c++ compilier

Tom Browder tom.browder@gmail.com
Fri Jan 2 14:40:00 GMT 2009


On Fri, Jan 2, 2009 at 6:51 AM, robert watson <reswatson@yahoo.com> wrote:
...
> I can't get my HelloWorld c++ test program to work
> because <iostream> is not known by the compiler: it
> produces 5 errors in all. Therefore gcc is not standard c++.
>
> Do you know if there is a standard GNU compiler out there, or
> if there is some command that I need to add to the gcc in
> the command line to make it work as a standard c++ compiler?
> If so this should be the first thing in the manual.

You probably used

  gcc helloworld.cc  # uses c compiler

instead of

  g++ helloworld.cc # uses c++ compiler

-Tom



More information about the Gcc-help mailing list