www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/22/03:21:19

Date: Tue, 22 Oct 1996 08:40:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Georg Viehhauser <viehhaus AT suhep DOT phy DOT syr DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Need Help: Where can I find <alloc.h>?
In-Reply-To: <326BA883.41C6@suhep.phy.syr.edu>
Message-Id: <Pine.SUN.3.91.961022083649.2800U-100000@is>
Mime-Version: 1.0

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

<alloc.h> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019