Gcc Compile time error in Red hat 9

View: New views
2 Messages — Rating Filter:   Alert me  

Gcc Compile time error in Red hat 9

by sailas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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]#

The header iostream , stdio etc are not being included...

I get a Header not supported error and when I searched for the header.. it says the header is deprecated...

Please give me suggestion as on what to do!!

Thanks in advance.

Re: Gcc Compile time error in Red hat 9

by Benjamin Kosnik-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> 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