Adam C Powell IV <[EMAIL PROTECTED]> writes:

> Aha, I had an identical file minus the -std strict_ansi.  But with
> those, it gives me compiler errors:
> 
> zither:/# cxx /tmp/bye.C -o /tmp/bye
> cxx: Error: /tmp/bye.C, line 4: identifier "cout" is undefined
>   cout << "Hello world" << endl;
> --^
> cxx: Error: /tmp/bye.C, line 4: identifier "endl" is undefined
>   cout << "Hello world" << endl;
> ---------------------------^
> cxx: Info: 2 errors detected in the compilation of "/tmp/bye.C".
> zither:/# more /tmp/bye.C
> #include <iostream>
> int main()
> {
>   cout << "Hello world" << endl;
>   return 0; }

Well, that's a correct message, g++ will tell you the same :)

You need std::cout and std::endl. And I think you really need -std
strict_ansi in comp.config to get it to work.

-- 
        Falk


Reply via email to