This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Gcc Compile time error in Red hat 9
- From: Benjamin Kosnik <benjamin dot kosnik at gmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 21 Jun 2007 15:51:31 +0200
- Subject: Re: Gcc Compile time error in Red hat 9
- References: <11226670.post@talk.nabble.com>
> 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