drbig / snb

Simple hierarchical notebook that's locale aware
BSD 2-Clause "Simplified" License
40 stars 5 forks source link

Errors in make #2

Closed amebru closed 9 years ago

amebru commented 9 years ago

I get the following errors when I make debug.

gcc -Wall -Werror -DDEBUG -g  -I/usr/include/ncursesw -c src/ui.c -o src/ui.o
src/ui.c: In function ‘dlg_newwin’:
src/ui.c:238:5: error: implicit declaration of function ‘waddwstr’ [-Werror=implicit-function-declaration]
src/ui.c: In function ‘dlg_simple’:
src/ui.c:271:3: error: implicit declaration of function ‘waddnwstr’ [-Werror=implicit-function-declaration]
src/ui.c:273:5: error: implicit declaration of function ‘mvwaddwstr’ [-Werror=implicit-function-declaration]
src/ui.c: In function ‘dlg_bool’:
src/ui.c:314:5: error: implicit declaration of function ‘get_wch’ [-Werror=implicit-function-declaration]
src/ui.c: In function ‘dlg_file_path’:
src/ui.c:429:7: error: implicit declaration of function ‘mvwaddnwstr’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make: *** [src/ui.o] Error 1

Also, running ncursesw5-config works properly.

drbig commented 9 years ago

First please do tell what distro/OS you are using.

If it's Debian or derivative please ensure you have all of these installed: ncurses5, ncurses5-dev, ncursesw5, and ncursesw5-dev.

amebru commented 9 years ago

It turns out I hadn't had ncursesw5-dev installed. For the record, I am using Debian. It's working properly now, thanks.