|
about the head file problem. gcc always say missing head file, such as iostream.h. and I find it in g++-3 folder. so I copy it to include folder. and the missing file problem gone. but there are lots of errors. what's going on?
just like a simple program:
#include <iostream.h>
#define max 10
int main()
{
#if max>99
cout<<"max is great";
#else
cout<<"max is small";
#endif
return 0;
}
when gcc -c xxxx.c, it display:
In file included from /usr/include/iostream.h:31,
from test1.c:1:
/usr/include/streambuf.h:35: parse error before string constant
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/streambuf.h:36,
from /usr/include/iostream.h:31,
from test1.c:1:
and so many errors......
somebody help me!! |
|