Re: gcc c++ compilier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 2, 2009 at 6:51 AM, robert watson <reswatson@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux