1.交叉编译器改为3.4.5 2, 看到倪好像用到了共享文件夹的方式,不建议这样用,容易出莫名其妙的问题,建议采用FTP方式进行文件传输。 3.这些问题本论坛都有人问过的,发帖前建议先搜索
root@ubuntu:/mnt/hgfs/ubuntuShare/006_uart_printf_011_005# make
arm-linux-gcc -c -o led.o led.c
arm-linux-gcc -c -o uart.o uart.c
arm-linux-gcc -c -o lib1funcs.o lib1funcs.S
arm-linux-gcc -c -o my_printf.o my_printf.c
arm-linux-gcc -c -o main.o main.c
arm-linux-gcc -c -o start.o start.S
arm-linux-ld -Ttext 0 -Tdata 0xe80 start.o led.o uart.o lib1funcs.o my_printf.o main.o -o uart.elf
my_printf.o: In function `out_num':
my_printf.c:(.text+0x11c): undefined reference to `__aeabi_uidivmod'
my_printf.c:(.text+0x14c): undefined reference to `__aeabi_uidiv'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
root@ubuntu:/mnt/hgfs/ubuntuShare/006_uart_printf_011_005#