linux编译代码到开发板运行,交叉编译简单hello程序,放到开发板上执行./hello,提示:./hello not found...

谢谢版主,这是错误,1.14.1和1.13.3的错误都是一样的,

In file included from include/libbb.h:35,

from networking/route.c:31:

/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/sys/wait.h:103: error: expected identifier before numeric constant

In file included from include/libbb.h:37,

from networking/route.c:31:

/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/time.h:160: error: redefinition of ‘struct itimerspec’

In file included from networking/route.c:31:

include/libbb.h:92: error: redefinition of ‘struct sysinfo’

networking/route.c: In function ‘INET6_setroute’:

networking/route.c:342: error: storage size of ‘rt’ isn’t known

networking/route.c:342: warning: unused variable ‘rt’

networking/route.c: At top level:

networking/route.c:448: error: ‘RTF_DEFAULT’ undeclared here (not in a function)

networking/route.c:449: error: ‘RTF_ADDRCONF’ undeclared here (not in a function)

networking/route.c:450: error: ‘RTF_CACHE’ undeclared here (not in a function)

networking/route.c: In function ‘INET6_displayroutes’:

networking/route.c:601: error: invalid operands to binary |

networking/route.c:601: error: invalid operands to binary |

networking/route.c:601: error: invalid operands to binary |

networking/route.c:601: error: invalid operands to binary &

networking/route.c:601: warning: passing argument 2 of ‘set_flags’ makes integer from pointer without a cast

make[1]: *** [networking/route.o] 错误 1

make: *** [networking] 错误 2

使用友善4.3.2都能编译过去,请版主帮忙看看原因,谢谢了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值