uboot 编译 arm-linux-gcc cmd_hello.c -o cmd_hello.o

Yukin_397 2016-10-28 11:23:53
作为一个小白,被老师赶鸭子上架了,各位大神求教我 arm-linux-gcc cmd_hello.c -o cmd_hello.o总是提示这个错误,我已经把有可能的安装包都给补上了还是不行
root@yukin-virtual-machine:/CBT-SuperIOT/SRC/u-boot4cbt210-2011.06# arm-linux-gcc cmd_hello.c -o cmd_hello.o
cmd_hello.c:13: error: expected ')' before '*' token
cmd_hello.c:21: error: expected ')' before numeric constant
这个是我的.c文件的代码,帮我看看好不
#include <common.h>
#include <watchdog.h>
#include <command.h>
#include <image.h>
#include <malloc.h>
#include <u-bootzlib.h>
#include <bzlib.h>
#include <environment.h>
#include <lmb.h>
#include <linuxctype.h>
#include <asmbyteorder.h>
U_BOOT_CMD(hello,CONFIG_SYS_MAXARGS,1,do_hello,"usage info", "help info");
int do_hello (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
printf("hello world\n");
return 0;
}
...全文
153 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Yukin_397 2016-10-29
  • 打赏
  • 举报
回复
不行呀,老师就是说把.c变.o然后就可以make了,但是都不行啊
赵4老师 2016-10-29
  • 打赏
  • 举报
回复
问你的老师!

427

社区成员

发帖
与我相关
我的任务
社区描述
非技术问题的乐园
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧