This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where's sbrk()?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]