www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/03:44:58

Date: Wed, 19 Feb 1997 10:34:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gregary J Boyles <boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Curses macro clear vs ios function clear.
In-Reply-To: <5ebpfo$81u@lion.cs.latrobe.edu.au>
Message-ID: <Pine.SUN.3.91.970219102951.22519O-100000@is>
MIME-Version: 1.0

On 18 Feb 1997, Gregary J Boyles wrote:

> If I include curses.h and fstream.h (in the appropriate order to avoid the
> "arguments passed to macro clear...") and I then try to call
> fstream::clear() the compiler generates a parse error ".....parse error
> before '('.....".

I think you should use <cursesw.h> when you use Curses in C++ programs.  
I looked into that header (it's in lang/cxx directory) and it seems that 
it should solve your problems if you include it instead of <curses.h>.  
Please try this and see if it helps.

One minor point: cursesw.h includes curses.h conditioned on a symbol 
_G_HAVE_CURSES which is currently set to 0.  You might need to edit 
cursesw.h to make it always include curses.h.

- Raw text -


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