龙芯俱乐部开源技术社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3050|回复: 1

x64的debian交叉编译错误

[复制链接]

52

主题

125

帖子

4661

积分

论坛元老

Rank: 8Rank: 8

积分
4661
发表于 2017-10-16 21:34:04 | 显示全部楼层 |阅读模式
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:~/桌面#

26

主题

150

帖子

4038

积分

超级版主

Rank: 8Rank: 8

积分
4038
发表于 2017-10-23 10:30:54 | 显示全部楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|龙芯俱乐部开源技术社区

GMT+8, 2024-11-28 07:36 , Processed in 0.151227 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表