Mail Archives: djgpp/1994/11/08/04:25:50
> 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 -