This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
error in include file (streambuf.h)
- To: gcc at gcc dot gnu dot org
- Subject: error in include file (streambuf.h)
- From: "Hung Vu" <hungvu2000 at hotmail dot com>
- Date: Thu, 20 Jan 2000 14:44:30 ICT
My source code include <iostream.h>. This “iostream.h” file has an include
to the “streambuf.h” file. I alway have the error message at the
“streambuf.h” file. You can see the root of error is from the “streambuf.h”
file (please see the paragraph below). How I can resolve this problem ? My
compiler is gcc 2.95.2
Thanks.
Hungvu
This paragraph is the error message when I compile my program:
-----------------------------------------------------
$ make -f demo_rdbms.mk buildc++ EXE=cdemo6 OBJS=cdemo6.o
gcc -O2 -D_REENTRANT -I/8i/app/Oracle05/product/8.0.5/rdbms/demo
-I/8i/ap
p/Oracle05/product/8.0.5/rdbms/public
-I/8i/app/Oracle05/product/8.0.5/plsql/pub
lic -I/8i/app/Oracle05/product/8.0.5/network/public
-I/usr/local/include/g++-3 -
DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -c cdemo6.c
In file included from /usr/local/include/g++-3/iostream.h:31,
from cdemo6.c:1:
/usr/local/include/g++-3/streambuf.h:35: parse error before string constant
In file included from /usr/local/include/g++-3/iostream.h:31,
from cdemo6.c:1:
/usr/local/include/g++-3/streambuf.h:37: parse error before `}'
/usr/local/include/g++-3/streambuf.h:67: warning: data definition has no
type or
storage class
------------------------------------------------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com