public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* error in include file (streambuf.h)
@ 2000-01-19 23:44 Hung Vu
  2000-01-20 20:50 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Hung Vu @ 2000-01-19 23:44 UTC (permalink / raw)
  To: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error in include file (streambuf.h)
  2000-01-19 23:44 error in include file (streambuf.h) Hung Vu
@ 2000-01-20 20:50 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2000-01-20 20:50 UTC (permalink / raw)
  To: Hung Vu; +Cc: gcc

On Jan 20, 2000, "Hung Vu" <hungvu2000@hotmail.com> wrote:

> /usr/local/include/g++-3/streambuf.h:35: parse error before string constant

This line contains just:

extern "C" {


Could it be that `extern' is #defined away or something like that?
Compile with `-save-temps -dD' and look for `extern' in the .ii file
to tell where.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-01-20 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-19 23:44 error in include file (streambuf.h) Hung Vu
2000-01-20 20:50 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).