Re: GCC
On Mon, Feb 16, 2004 at 10:55:36PM -0500, Roberto Sanchez wrote:
> Johann Koenig wrote:
> >On Tuesday February 17 at 02:22am
> >Werner Mahr <werner@vollstreckernet.de> wrote:
> >
> >
> >>Am Dienstag, 17. Februar 2004 00:29 schrieb Debian User:
> >>
> >>
> >>>#include<iostream>
> >>>#include<string>
> >>>#include<cctype>
> >>>#include<iomanip>
> >>>#include<algorithm>
> >>
> >>The days I used C daily are long behind, but I think you should try
> >>#include <iostream> and so on.
> >
> >
> >IIRC, isn't it
> >#include<iostream.h>
> >(note the .h)?
>
> Nowadays, the standard headers are all sans .h.
>
> -Roberto
Got here late. Didn't see thread. Use g++ instead of gcc. The .h is
optional with g++ 2.95.4 and g++ 3.0.4. Compiling with -Wall didn't
generate a warning when iostream.h was used. IIRC I did see a nastygram
about .h being deprecated, but I didn't see it on the following:
------test.cpp-------------
#include <iostream.h>
main()
{
cout << "hello\n";
}
-------------
compiled with:
mike01@test4:~$ g++-3.0 -Wall -o test test.cpp
test.cpp:4: warning: ISO C++ forbids declaration of `main' with no type
mike01@test4:~$
--
Mike
Two hundred years ago, we note mischievously, the average American or
European had a standard of living not very much superior to that of the
average man in India or China. -- dailyreckoning.com
Reply to:
- Follow-Ups:
- Re: GCC
- From: Werner Mahr <werner@vollstreckernet.de>
- Re: GCC
- From: Ed Cogburn <edcogburn@hotpop.com>
- Re: GCC
- From: John L Fjellstad <john-debian@fjellstad.org>
- References:
- GCC
- From: Debian User <bfarnell@knology.net>
- Re: GCC
- From: Werner Mahr <werner@vollstreckernet.de>
- Re: GCC
- From: Johann Koenig <explosive@hvc.rr.com>
- Re: GCC
- From: Roberto Sanchez <rcsanchez97@yahoo.es>