Date: Tue, 22 Oct 1996 08:40:58 +0200 (IST) From: Eli Zaretskii To: Georg Viehhauser Cc: djgpp AT delorie DOT com Subject: Re: Need Help: Where can I find ? In-Reply-To: <326BA883.41C6@suhep.phy.syr.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 21 Oct 1996, Georg Viehhauser wrote: > richgain.cc(.text+0x19b): undefined reference to `farmalloc' > richgain.cc(.text+0x5cd): undefined reference to `peek' > richgain.cc(.text+0x5e5): undefined reference to `peek' > richgain.cc(.text+0x603): undefined reference to `peekb' > richgain.cc(.text+0x67b): undefined reference to `MK_FP' > richgain.cc(.text+0x694): undefined reference to `movmem' > richgain.cc(.text+0x72d): undefined reference to `FP_SEG' > richgain.cc(.text+0x742): undefined reference to `FP_OFF' The DJGPP FAQ list (v2/faq202b.zip from the same place you get DJGPP) has some advice on how to convert these in Chapter 18. `farmalloc' should be just #defined to `malloc', `movemem' to `memmove', `peek' and `peekb' to `_farpeekw' and `_farpeekb'. > > There are a number of other header files included in the program like > stdio.h which give no problems. I tried also to find alloc.h on my disk > (even with preceding underscore) but I had no luck. I also tried follow is Borland-specific. Whoever put it there didn't think a bit about portability. Just ifdef it away; you don't need it in DJGPP.