This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where's sbrk()?
- To: Richard Stanton <stanton at haas dot berkeley dot edu>
- Subject: Re: Where's sbrk()?
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Sat, 21 Mar 1998 20:02:40 -0600 (CST)
- Cc: egcs at cygnus dot com
On Thu, 19 Mar 1998, Richard Stanton wrote:
> I'm trying to compile the dbmalloc debugging malloc library for use
> with egcs (under Windows 95/NT). I'm almost there, but I get the
> following error messages:
>
> gcc -o testmalloc.exe testmalloc.o dbmalloc.a
> testmalloc.o(.text+0x3bf):testmalloc.c: undefined reference to `sbrk'
> testmalloc.o(.text+0x3ce):testmalloc.c: undefined reference to `end'
>
> What do I need to do to get rid of these errors?
>
> Looking further, I get a similar message about fork().
>
Hi Richard,
This has *nothing* to do with egcs. It's a runtime library issue, and
you'll have to either use a runtime that provides sbrk, fork etc (eg.,
Cygwin32 B19 at http://www.cygnus.com/misc/gnu-win32/ or AT&T UWIN
at http://www.research.att.com/sw/tools/uwin/) or modify dbmalloc to
use Win32 API (good luck).
Mumit