On Wed, Nov 06, 2002 at 11:06:51PM -0800, Darrel wrote:
> I have no idea what has changed in gcc 3.2 that is so different I can't compile 
>anything.
> 
> --------------
> #include <iostream.h>
> 
> int main()
> {
>       cout << "Hello World\n";
>       return 0;
> }
> --------------
> [Irv@snail cplusplus]$ gcc helloworld.c -o helloworld
> helloworld.c:1:22: iostream.h: No such file or directory
> helloworld.c: In function `main':
> helloworld.c:5: `cout' undeclared (first use in this function)
> helloworld.c:5: (Each undeclared identifier is reported only once
> helloworld.c:5: for each function it appears in.)
Nothing has changed, you're trying to compile a C++ source as pure C.
        Mirek




Reply via email to