[BRLTTY] ncursesw/ncurses.h

Raoul Mégélas rmgls at free.fr
Mon Feb 25 15:35:09 EST 2008


Hi all,

Please, could you ifdef tbltest.c
to specify:
#include <ncurses/ncurses.h>

rather:

#include <ncursesw/ncurses.h>

because include/ncursesw doesn't exists.
the needed KEY_CODE_*
are defined in ncurses/ncurses.h on current FreeBSD (see below).

Perhaps you will prefer to define it in Programs/sys_freebsd.c?

Thanks.

Raoul
rmgls at free.fr


gcc -Wall -g -O2 -I. -I. -I./..//Programs -I../Programs -I./../ -I..  -DHAVE_CONFIG_H -c ./tbltest.c
./tbltest.c:38:30: error: ncursesw/ncurses.h: No such file or directory
./tbltest.c: In function 'printCharacterString':
./tbltest.c:461: warning: implicit declaration of function 'printw'
./tbltest.c: In function 'updateCharacterDescription':
./tbltest.c:534: warning: implicit declaration of function 'clear'
./tbltest.c:561: warning: implicit declaration of function 'refresh'
./tbltest.c: In function 'doKeyboardCommand':
./tbltest.c:594: warning: implicit declaration of function 'get_wch'
./tbltest.c:596: error: 'KEY_CODE_YES' undeclared (first use in this function)
./tbltest.c:596: error: (Each undeclared identifier is reported only once
./tbltest.c:596: error: for each function it appears in.)
./tbltest.c:604: error: 'KEY_UP' undeclared (first use in this function)
./tbltest.c:608: error: 'KEY_DOWN' undeclared (first use in this function)
./tbltest.c:612: error: 'KEY_PPAGE' undeclared (first use in this function)
./tbltest.c:616: error: 'KEY_NPAGE' undeclared (first use in this function)
./tbltest.c:620: error: 'KEY_HOME' undeclared (first use in this function)
./tbltest.c:624: error: 'KEY_END' undeclared (first use in this function)
./tbltest.c:628: warning: implicit declaration of function 'KEY_F'
./tbltest.c:628: error: case label does not reduce to an integer constant
./tbltest.c:643: error: case label does not reduce to an integer constant
./tbltest.c:647: warning: implicit declaration of function 'beep'
./tbltest.c:653: error: 'OK' undeclared (first use in this function)
./tbltest.c: In function 'editTable':
./tbltest.c:825: warning: implicit declaration of function 'initscr'
./tbltest.c:826: warning: implicit declaration of function 'cbreak'
./tbltest.c:827: warning: implicit declaration of function 'noecho'
./tbltest.c:828: warning: implicit declaration of function 'nonl'
./tbltest.c:829: warning: implicit declaration of function 'intrflush'
./tbltest.c:829: error: 'stdscr' undeclared (first use in this function)
./tbltest.c:829: error: 'FALSE' undeclared (first use in this function)
./tbltest.c:830: warning: implicit declaration of function 'keypad'
./tbltest.c:830: error: 'TRUE' undeclared (first use in this function)
./tbltest.c:865: warning: implicit declaration of function 'endwin'
gmake[1]: *** [tbltest.o] Erreur 1
gmake: *** [all] Erreur 2


More information about the BRLTTY mailing list