« Return to Thread: Gcc Compile time error in Red hat 9

Re: Gcc Compile time error in Red hat 9

by Benjamin Kosnik-2 :: Rate this Message:

Reply to Author | View in Thread


> Whatever I do I always get the same error message (gcc version 3.2.2
> 20030222 (Red Hat Linux 3.2.2-5))
>
>       test.c:1:19: iostream.h: No such file or directory
> test.c: In function `main':
> test.c:6: `cout' undeclared (first use in this function)
> test.c:6: (Each undeclared identifier is reported only once
> test.c:6: for each function it appears in.)
> test.c:6: parse error before "hello"
> test.c:6:16: warning: multi-line string literals are deprecated
> test.c:6:16: missing terminating " character
> test.c:6:16: possible start of unterminated string literal
> [root@localhost temp]#

You'll need to make sure that gcc, gcc-c++, libstdc++, and
libstdc++-devel packages are installed.

When they are, you'll find a directory like so:

/usr/include/c++/3.2.2

with a file:

/usr/include/c++/3.2.2/backward/iostream.h

-benjamin

 « Return to Thread: Gcc Compile time error in Red hat 9