Re: Cone 0.57 now available.

Thomas Dickey <[email protected]>
Newsgroups gmane.mail.cone,gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
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


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.