vsprintf: undefined reference to `_sbrk'
Hi,
I have a function that I use for debbuging purposes and that uses vsprintf.
void LOG(char *text, ...)
{
char buf[_LOGSTR_
va_list args;
va_start(args, text);
vsprintf(
_send_
va_end(args);
}
This is part of a static library and when I link it with an application program (which provides the main() function) I get the following error:
/linux/
sbrkr.c:
collect2: error: ld returned 1 exit status
If I remove the line that contains the vsprintf then the error is gone so this way I know the issue is related with vsprintf but I can't understand why? Any suggestion?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mario Ribeiro for more information if necessary.