From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aaron J. Grier" To: Stephane Dalton Cc: crossgcc@sourceware.cygnus.com Subject: Re: sbrk undefined symbol Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-id: <20000221112508.A21117@aaron.fryebox.com> References: X-SW-Source: 2000-q1/msg00293.html On Mon, Feb 21, 2000 at 01:58:52PM -0500, Stephane Dalton wrote: > Today I've added a #include inside on of the file and now > at link time I got these error messages: [undefined references to abort, _exit, sbrk, kill, and getpid] > I've encountered this kind of error before (for different type of > function) and the FAQ simply told to stub out these. Should I do the > same here. I'm a bit worry to see sbrk here because as far as I know > it is used for memory allocation??? assert() as defined in newlib depends on all these functions. You can find stubs in libgloss. You'll need to link these in for assert to work. -- Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com "The simplistic anthropomorphism which asserts that source code has a life separate from its creator or maintainer is the product of one too many viewings of Tron." -- paraphrasing of anonymous post on /. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com