PDA

Bekijk de volledige versie : curses.h?



wirespot
08-03-2007, 15:53
I've just noticed .h files, particularly curses.h and panel.h I'm needing right now, are not available. Is there a -dev package I can find somewhere that provides them?

darius
07-01-2009, 13:57
I've just noticed .h files, particularly curses.h and panel.h I'm needing right now, are not available. Is there a -dev package I can find somewhere that provides them?

Hi,
the same problem with my example code native compilation.

Any solution ?

Darius

[admin@oo ncurses]$ make
gcc -o ncurses ncurses.c -lncurses
ncurses.c:2:20: error: curses.h: No such file or directory
ncurses.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ncurses.c:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ncurses.c:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ncurses.c: In function 'screen_init':
ncurses.c:15: error: 'mainwnd' undeclared (first use in this function)
ncurses.c:15: error: (Each undeclared identifier is reported only once
ncurses.c:15: error: for each function it appears in.)
ncurses.c:18: error: 'TRUE' undeclared (first use in this function)
ncurses.c:21: error: 'screen' undeclared (first use in this function)
ncurses.c:22: error: 'ACS_VLINE' undeclared (first use in this function)
ncurses.c:22: error: 'ACS_HLINE' undeclared (first use in this function)
ncurses.c: In function 'update_display':
ncurses.c:27: error: 'screen' undeclared (first use in this function)
ncurses.c: In function 'main':
ncurses.c:65: warning: incompatible implicit declaration of built-in function 'printf'
make: *** [ncurses] Error 1
[admin@oo ncurses]$