打印
[STM32F1]

Eclipse编译STM32工程出现了错误

[复制链接]
1679|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Jack-Ming|  楼主 | 2017-6-27 23:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位大神好,我在链接时出现了以下错误信息,请问有解决思路么
操作系统:win7 64位     其他软件都是32位
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x12): undefined reference to `_write'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0xc): undefined reference to `_close'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0x10): undefined reference to `_fstat'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x12): undefined reference to `_lseek'
d:/eclipse/eclipse/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x12): undefined reference to `_read'
collect2.exe: error: ld returned 1 exit status
沙发
zhangbolily| | 2017-6-27 23:43 | 只看该作者
看起来像是缺少了一点组件,你的初始化代码是Cube生成的还是自己写的?

使用特权

评论回复
板凳
mmuuss586| | 2017-6-28 07:57 | 只看该作者
缺少什么文件吧

使用特权

评论回复
地板
Jack-Ming|  楼主 | 2017-6-28 14:49 | 只看该作者

看了看是调用了printf  malloc之类的C链接库函数,貌似要用newlib,正在研究

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

14

帖子

0

粉丝