www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/19/18:30:18

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C4A0122.52A26975@qwest.net>
From: diritol <diritolx AT qwest DOT net>
X-Mailer: Mozilla 4.75 [en]C-CCK-MCD (Qwest.net) (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Errors. streambuf.h (I don't think it's my code)...
Lines: 29
Date: Sat, 19 Jan 2002 16:28:34 -0700
NNTP-Posting-Host: 65.100.198.38
X-Trace: news.uswest.net 1011482948 65.100.198.38 (Sat, 19 Jan 2002 17:29:08 CST)
NNTP-Posting-Date: Sat, 19 Jan 2002 17:29:08 CST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have no idea why I'm getting this error. I compiled my
project a few days ago and everything worked fine. The only
changes I made involved the deletion of some class-functions,
which aren't even used in my program (yet)...

Anyway, I have a file called cbitmapclass.cpp, it contains
all the function-definitions of my cBITMAP class, which is
declared in cbitmapclass.h.

When I try to compile this into an .o file like this:

gxx -c cbitmapclass.cpp

I get these errors:

In file included from c:/djgpp/lang/cxx/iostream.h:31, 
from cbitmapclass.cpp:6: c:/djgpp/lang/cxx/streambuf.h:35:
syntax error before string constant

In file included from c:/djgpp/lang/cxx/iostream.h:31, from
cbitmapclass.cpp:6: c:/djgpp/lang/cxx/streambuf.h:37: parse
error before '}'

This file [cbitmapclass.cpp] compiled earlier. The only thing on
line 6 of my cbitmapclass.cpp file is #include <iostream.h>.  Why
is this happening? How can I fix it? I'm still a newbie, so
please keep that in mind when replying.. :)

Thanks a lot...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019