using sprintf "undefined reference to `_sbrk'"

Started by spomue, February 20, 2015, 04:23:47 pm

Previous topic - Next topic

spomue

I want to use the sprintf-Funktion. But if I use it like

char   str[128];
sprintf(str, "%s: Vers: %s, %s %s\r", GSE_SOFTW_NAME, GSE_FW_VERSION, __DATE__, __TIME__);

I get the error msg: undefined reference to `_sbrk'

What is the Problem?? Please can help me anybody?

Thanks

MBR


spomue

Doesn't work.
And sscanf also generate this error.

JohnS

Wrong compiler version, wrong lib, wrong command line or the like.

John

spomue

OK. But what can I do to use sscanf or sprintf or other functions?

JohnS