Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] link problem.

2006-02-17 by Robert Adsett

At 01:46 PM 2/17/06 -0700, Steve Franks wrote:
>Anyone know what lib's contain the following?  I can't seem to locate
>it.  Or, it could be a link ordering problem, I suppose.  I get the
>same errors when adding either a call to sprintf or std::stringstream
>
>Thanks,
>Steve
>
>C:\WinARM\arm-elf\lib\libc.a(mallocr.o): In function
>`_malloc_r':mallocr.c:(.text+0x430): undefined reference to `_sbrk_r'
>:mallocr.c:(.text+0x5ec): undefined reference to `_sbrk_r'

Those are newlib entry points.  They provide the points to customize the 
I/O for particular processors and/or boards.  WinARM is supposed to include 
a copy of newlib-lpc which provides these stubs.  Maybe you just need to 
add it to the link?

If it's not there you can get it from http://www.aeolusdevelopment.com

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.