This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error while cout command compiling


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]