public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Where's sbrk()?
@ 1998-03-23 10:41 Kaz Kylheku
  0 siblings, 0 replies; 5+ messages in thread
From: Kaz Kylheku @ 1998-03-23 10:41 UTC (permalink / raw)
  To: 'Richard Stanton', egcs

On Thursday, March 19, 1998 10:55 PM, Richard Stanton 
[SMTP:stanton@haas.berkeley.edu] 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?

The sbrk() function is the UNIX method (or one of the methods) for
obtaining memory from the operating system. This function
isn't available in the Win32 API.

Why are you asking about this in the EGCS bugs list? Is dbmalloc
a component of EGCS? The compiler can't resolve all your portability
problems. Just because you have GCC running on some operating
system doesn't mean that it has turned into UNIX or that its libraries
magically conform to standards like ANSI C, POSIX.1 or XPG4.


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Where's sbrk()?
@ 1998-03-20  8:45 Richard Stanton
  1998-03-23 16:39 ` Jeffrey A Law
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Richard Stanton @ 1998-03-20  8:45 UTC (permalink / raw)
  To: egcs

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().

Thanks for any help.

Richard Stanton


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-03-23 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-23 10:41 Where's sbrk()? Kaz Kylheku
  -- strict thread matches above, loose matches on Subject: below --
1998-03-20  8:45 Richard Stanton
1998-03-23 16:39 ` Jeffrey A Law
1998-03-23 19:24 ` Jim Wilson
1998-03-23 19:24 ` Mumit Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).