Atmel Studio 6编译出错, 用<stdio.h>头文件的sprintf()函数就出现下面的问题了,这是怎么回事

C文件的sprintf(str1,"%d",len);这个函数编译出错,具体错误如下?请高手帮忙解决d:/programfiles/atmel/atmelstudio6.... C文件的sprintf(str1,"%d",len);这个函数编译出错,具体错误如下?请高手帮忙解决

d:/program files/atmel/atmel studio 6.0/extensions/atmel/armgcc/3.3.1.128/armgcctoolchain/bin/../lib/gcc/arm-none-eabi/4.7.0/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
/usr/local/avr32studio/hudson/workspace/arm-gnu-toolchain/.build/src/newlib-1.19.0/newlib/libc/reent/sbrkr.c(60,1): undefined reference to `_sbrk'
d:/program files/atmel/atmel studio 6.0/extensions/atmel/armgcc/3.3.1.128/armgcctoolchain/bin/../lib/gcc/arm-none-eabi/4.7.0/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-abort.o): In function `abort':
/usr/local/avr32studio/hudson/workspace/arm-gnu-toolchain/.build/src/newlib-1.19.0/newlib/libc/stdlib/abort.c(63,1): undefined reference to `_exit'
d:/program files/atmel/atmel studio 6.0/extensions/atmel/armgcc/3.3.1.128/armgcctoolchain/bin/../lib/gcc/arm-none-eabi/4.7.0/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-signalr.o): In function `_kill_r':
/usr/local/avr32studio/hudson/workspace/arm-gnu-toolchain/.build/src/newlib-1.19.0/newlib/libc/reent/signalr.c(61,1): undefined reference to `_kill'
d:/program files/atmel/atmel studio 6.0/extensions/atmel/armgcc/3.3.1.128/armgcctoolchain/bin/../lib/gcc/arm-none-eabi/4.7.0/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-signalr.o): In function `_getpid_r':
/usr/local/avr32studio/hudson/workspace/arm-gnu-toolchain/.build/src/newlib-1.19.0/newlib/libc/reent/signalr.c(96,1): undefined reference to `_getpid'
collect2.exe(0,0): ld returned 1 exit status
make: *** [MeterBus.elf] Error 1
The command exited with code 2.
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreRebuild" in project "MeterBus.cproj" -- FAILED.
Done building project "MeterBus.cproj" -- FAILED.
Build FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
展开
 我来答
若以下回答无法解决问题,邀请你更新回答
亢尔容0et0d9
2013-04-22 · 超过15用户采纳过TA的回答
知道答主
回答量:70
采纳率:0%
帮助的人:45.7万
展开全部
你检查一下你的编译环境,可能有错。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式