www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/08/04:25:50

To: TAUPIN AT rsovax DOT lps DOT u-psud DOT fr
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 08 Nov 94 08:46:34 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>

> I tried to recompile it with gcc but it requires a mem.h file, and this
> is due to the TURBO option. I tried other DEFs, but it fails with some
> "register" declarations.

mem.h is usually included in Turbo C program to use the far heap
memory allocation functions, and these are not required in gcc.
I would advise to comment that include out, use the -Wall compiler
switch and watch for the ``function without prototype'' warnings;
then create your own mem.h which #define's those functions to call
djgpp's substitutes (e.g., farmalloc should call malloc, farcoreleft
should call _go32_dpmi_remaining_physical_memory, etc.).  To force
the compiler to include your mem.h although it is given as <mem.h> in the
program, add -I. to the compilation command line.

- Raw text -


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