root@debian:~/桌面# sudo apt-get install libncurses5-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
libncurses5-dev 已经是最新版 (6.0+20161126-1+deb9u1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 60 个软件包未被升级。
root@debian:~/桌面# mipsel-linux-gcc ss.c
ss.c:3:28: error: curses.h: No such file or directory
ss.c: In function 'initGame':
ss.c:55: error: 'stdscr' undeclared (first use in this function)
ss.c:55: error: (Each undeclared identifier is reported only once
ss.c:55: error: for each function it appears in.)
ss.c:55: error: 'true' undeclared (first use in this function)
ss.c:63: error: 'COLS' undeclared (first use in this function)
ss.c:64: error: 'LINES' undeclared (first use in this function)
ss.c: In function 'showInformation':
ss.c:111: error: 'COLS' undeclared (first use in this function)
ss.c: In function 'showSnake':
ss.c:128: error: 'bool' undeclared (first use in this function)
ss.c:128: error: expected ';' before 'lenChange'
ss.c:133: error: 'COLS' undeclared (first use in this function)
ss.c:135: error: 'LINES' undeclared (first use in this function)
ss.c:151: error: 'lenChange' undeclared (first use in this function)
ss.c:151: error: 'true' undeclared (first use in this function)
ss.c: In function 'getOrder':
ss.c:187: error: 'KEY_LEFT' undeclared (first use in this function)
ss.c:192: error: 'KEY_UP' undeclared (first use in this function)
ss.c:197: error: 'KEY_RIGHT' undeclared (first use in this function)
ss.c:202: error: 'KEY_DOWN' undeclared (first use in this function)
ss.c: In function 'over':
ss.c:216: error: 'COLS' undeclared (first use in this function)
root@debian:~/桌面#