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 件の賞賛
返信