bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cone 0.57 now available.


From: Thomas Dickey
Subject: Re: Cone 0.57 now available.
Date: Tue, 13 Jan 2004 10:09:03 -0500 (EST)

On Mon, 12 Jan 2004, Sam Varshavchik wrote:

> Jim Gifford writes:
>
> > Sam,
> >     With the latest patch of ncurses, I get the following build error.
> > Ncurses with patch-5.3-20040110.sh from
> > ftp://invisible-island.net/ncurses/5.3
> >
> > In file included from cursesscreen.C:9:
> > cursesscreen.H:42: error: conflicting return type specified for `virtual
> >    NCURSES_BOOL CursesScreen::writeText(const char*, int, int, const
> >    Curses::CursesAttr&) const'
>
> The problem is that for some reason your configuration now has ncurses.h
> #define-ining bool to something else.  I'm not exactly up to speed on what
> ncurses settings trigger that, but you can fix this now by manually sticking
> "#undef bool" right after #include <curses.h>, in this header file.
>
> But the bigger question is this:
>
> If curses.h does something as invasive as "#define bool somethingelse", I
> think curses.h should also undefine the macro when it's all over.  Otherwise
> you'll end up affecting a whole bunch of stuff elsewhere.

Unfortunately, the name "bool" is part of both X/Open curses and C++.
So I try to make ncurses' usage match C++.  More information about the
system would help me repair the configure script.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]