Date: Thu, 18 Jun 1998 16:25:26 +0300 (IDT) From: Eli Zaretskii To: Chris Lumens cc: djgpp AT delorie DOT com Subject: Re: parse error in iostream.h In-Reply-To: <898078306.173999@news.charweb.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 17 Jun 1998, Chris Lumens wrote: > Hey everybody. I am porting a program of mine from Borland C++ to DJGPP > and have run into a problem with the header files. When I try to compile > one of my files that includes iostream.h, it stops with the error messages: > > (91) Parse error before '__extension__' > (208) Parse error before '__extension__' Add -v to the gcc compilation command line, and post here everything that gets printed. (I think you have some installation snafu; the info printed by gcc -v should give a clue to what's wrong.) > #if defined(__GNUC__) > __extension__ ostream& operator<<(long long n) > > Line 208 is just about the same. Is this a problem with the preprocessor > commands? AFAIK, __extension__ is a keyword, so it is processed by the parser (cc1plus.exe), not the preprocessor.