Subject: ncurses.h
To: None <>
From: Berndt Josef Wulf <>
List: tech-pkg
Date: 08/13/1999 08:03:24

when compiling psk31 the following error occurs:

gcc -Wall --pedantic -O2 -I/usr/pkg/include
-DDATADIR=\"/usr/share/psk31\" -c psk31-main.C -o psk31-main.o
In file included from psk31-main.C:23:
/usr/pkg/include/ncurses.h:96: abstract declarator used as declaration
gmake: *** [psk31-main.o] Error 1

The apparent offending part in ncurses.h is the following:

#undef TRUE
#undef FALSE

#if defined(__cplusplus) && CXX_BUILTIN_BOOL
#define TRUE    (CXX_TYPE_OF_BOOL)true)
#define FALSE   (CXX_TYPE_OF_BOOL)false)
typedef CXX_TYPE_OF_BOOL bool;	           <--- ncurses.h:96
#define TRUE    (bool)1)
#define FALSE   (bool)0)

It fails in other external packages too, but works for dialog, which
is part of the NetBSD packages tree. Can someone clue me up on this?
This program was working with the older ncurses libs and it now fails
after upgrading to ncurses-4.2.

I intend to submit this program for inclusion into the "ham" category
once it build cleanly.

Sysinfo: NetBSD-1.4-i386, ncurses-4.2, egcs-1.1.1 release

Many thanks in advance and as always, your help is very much

Have a nice weekend

cheerio Berndt
Name    : Berndt Josef Wulf            | +++ With BSD on Packet Radio +++
E-Mail  :             |    tfkiss, tnt, dpbox, wampes
URL     : |  VK5ABN, Nairne, South Australia 
FTP     :    | MBOX :
Sysinfo : DEC AXPpci33+, NetBSD-1.4    | BBS  : vk5abn.#lmr.#sa.aus.oc