还没成功,现在遇到"引用未定义函数"的问题,现时我不懂解决
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
[cc] sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-writer.o): In function `_write_r':
[cc] writer.c:(.text._write_r+0x10): undefined reference to `_write'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-closer.o): In function `_close_r':
[cc] closer.c:(.text._close_r+0xc): undefined reference to `_close'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-fstatr.o): In function `_fstat_r':
[cc] fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-isattyr.o): In function `_isatty_r':
[cc] isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-lseekr.o): In function `_lseek_r':
[cc] lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-readr.o): In function `_read_r':
[cc] readr.c:(.text._read_r+0x10): undefined reference to `_read
最主要我给这个卡了我很久, 我没用printf等的函数,但未找到位置把它屏蔽
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\librdimon.a(rdimon-syscalls.o): In function `_sbrk':
[cc] syscalls.c:(.text._sbrk+0x30): undefined reference to `end'