Mail Archives: djgpp/1996/10/22/03:21:19
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 -