[En-Nut-Discussion] (no subject)

Bob Wirka bobwirka at yahoo.com
Tue Oct 25 22:18:27 CEST 2011


Thank you for your reply, and thank you for NutOS.

What is confusing me is that _sbrk is indeed present within libnutcrt, and I can force libc before libnutcrt for the linker. And yet the linker claims not to see it.

Haven't tested the code yet to see if anything is broken by having sbrk.c in my project instead of (and, maybe, in addition to) the version in libnutcrt.


Bob Wirka

From: Harald Kipp <harald.kipp at egnite.de>
To: en-nut-discussion at egnite.de
Sent: Tuesday, October 25, 2011 12:17 PM
Subject: Re: [En-Nut-Discussion] (no subject)

Hi Bob,

On 25.10.2011 17:41, Bob Wirka wrote:
> Recently added some code that causes the linker to choke with the error 
> "undefined reference to `_sbrk'"; unresolved from libc.a.

This typically happens, if you directly or indirectly call a library
function that requires an OS, but which is not available in the Nut/OS
lib. Candidates are stdio functions, but also memory allocation functions.




More information about the En-Nut-Discussion mailing list