stdio.h....for printf(),sprintf() support on Newlib(None)...

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

stdio.h....for printf(),sprintf() support on Newlib(None)...

669 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by chintan.parmar on Sat Oct 27 00:08:55 MST 2012
Hello Every one,

I am using LPCExpressso_V4.3.

I want to use stdio.h for printf(),sprintf() function through newlib....
As per mention changes on code_red...i have switched from Redlib to newlib.

but i am getting error that is mentioned below:

sbrkr.c:(.text+0x18): undefined reference to `_sbrk'......so many undefined reference show......:confused::confused:

i have already...libm.a = C:\nxp\LPCXpresso_4.3.0_1023\lpcxpresso\Tools\arm-none-eabi\lib
to
Properties->Settings->Tool Settings->MCU Linker->Libraries->Library search path

but still
libm.a file isnot getting....:confused:
what is solution????


Please solve my problem as soon as possible....
0 项奖励
回复
2 回复数

507 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Oct 27 08:46:25 MST 2012
Suggest you read this, to discover the difference between the none, nohost and semihost libraries.
http://support.code-red-tech.com/CodeRedWiki/LibraryVariants
0 项奖励
回复

507 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Sat Oct 27 01:06:38 MST 2012
Newlib(None) is not including this functions :eek:

http://support.code-red-tech.com/CodeRedWiki/UndefinedReference
0 项奖励
回复