QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 807|回复: 0

在samples中加入自己的库并修改makefil,链接出错

[复制链接]
发表于 2005-3-20 11:54:52 | 显示全部楼层 |阅读模式
编译的错误:

[root@localhost ucosii4skyeye]# make
make[1]: Entering directory `/usr/src/mjohhprj/test4/ucosii4skyeye/samples/ucos_test'
+ linking o file ... : start.o at91_aic.o at91_usart.o at91_tc.o at91_init.o skyeye_stdio.o skyeye_printf.o main_entry.o os_core.o os_cpu_c.o os_mbox.o os_mem.o os_mutex.o os_q.o os_sem.o os_task.o os_time.o os_cpu_a.o f.o ocMem.o ocBaseDef.o ocCore.o -> ucos_test.elf
arm-elf-ld -p -X -T../../samples/samples.lds start.o --start-group -L/usr/local/lib/gcc-lib/arm-elf/2.95.3/ -lgcc -lc at91_aic.o at91_usart.o at91_tc.o at91_init.o skyeye_stdio.o skyeye_printf.o main_entry.o os_core.o os_cpu_c.o os_mbox.o os_mem.o os_mutex.o os_q.o os_sem.o os_task.o os_time.o os_cpu_a.o f.o ocMem.o ocBaseDef.o ocCore.o --end-group -o ucos_test.elf
/usr/local/arm-elf/lib/libc.a(__uClibc_main.o): In function `__uClibc_start_main':
__uClibc_main.o(.text+0xf4): undefined reference to `main'
make[1]: *** [ucos_test.elf] Error 1
make[1]: Leaving directory `/usr/src/mjohhprj/test4/ucosii4skyeye/samples/ucos_test'
make: *** [all] Error 2
觉的没头绪,多谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 18:31 , Processed in 0.096055 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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