New KDS 3 problem - undefined reference to _sbrk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

New KDS 3 problem - undefined reference to _sbrk

跳至解决方案
3,408 次查看
davidsherman
Senior Contributor I

Yesterday things built after upgrading from KDS2 to KDS3, after fixing a couple problems.  Today I changed build configurations, built clean, and now I see this:

 

c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libg_s.a(lib_a-sbrkr.o): In function `_sbrk_r':

sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'

 

What gives?  This built correctly under KDS2.  Interestingly, switching back to the other configuration seems to make it go away.

标签 (1)
1 解答
2,616 次查看
BlackNight
NXP Employee
NXP Employee

have you already added

--specs=nosys.specs

to the linker options?

Erich

在原帖中查看解决方案

3 回复数
2,617 次查看
BlackNight
NXP Employee
NXP Employee

have you already added

--specs=nosys.specs

to the linker options?

Erich

1,697 次查看
zqy6394
Contributor I

Where can I find linker options?

 

thanks

 

Erich

 

0 项奖励
回复
2,616 次查看
davidsherman
Senior Contributor I

Ah, I had missed that in the migration page write up.  I've bookmarked it.  Adding that to the linker options seems to have fixed that.  Thank you again, Erich!

0 项奖励
回复