error while cout command compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Error :
//------------
# gcc part01-iti-r01-ch01-1_10-identifers01.c
In file included from
part01-iti-r01-ch01-1_10-identifers01.c:1:
/usr/local/include/c++/3.2.3/backward/iostream.h:32:20:
iostream: No
such file or directory
In file included from
part01-iti-r01-ch01-1_10-identifers01.c:1:
/usr/local/include/c++/3.2.3/backward/iostream.h:34:
syntax error
before "std"
part01-iti-r01-ch01-1_10-identifers01.c: In function
`main':
part01-iti-r01-ch01-1_10-identifers01.c:9: `cout'
undeclared (first
use in this function)
part01-iti-r01-ch01-1_10-identifers01.c:9: (Each
undeclared identifier
is reported only once
part01-iti-r01-ch01-1_10-identifers01.c:9: for each
function it
appears in.)

source code:
//-----------
#include
"/usr/local/include/c++/3.2.3/backward/iostream.h"
int i=2;
static int si;
const int ci=2;
struct { int i,j;} s={21,22};
int main(void)
{
int j=11;
cout << s.j;
return 0;
}


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux