From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: Richard Stanton Cc: egcs@cygnus.com Subject: Re: Where's sbrk()? Date: Mon, 23 Mar 1998 19:24:00 -0000 Message-id: References: <199803200654.WAA29509@shell.wco.com> X-SW-Source: 1998-03/msg00774.html 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