在samples中加入自己的库并修改makefil,链接出错
编译的错误:# make
make: 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: *** Error 1
make: Leaving directory `/usr/src/mjohhprj/test4/ucosii4skyeye/samples/ucos_test'
make: *** Error 2
觉的没头绪,多谢
页:
[1]