www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/18/09:34:08

Date: Thu, 18 Jun 1998 16:25:26 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Lumens <web455 AT charweb DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: parse error in iostream.h
In-Reply-To: <898078306.173999@news.charweb.org>
Message-ID: <Pine.SUN.3.91.980618162250.25361A-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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