Menu

Compiling under DOS

Bogdan Drozdowski

To see the most up-to-date requirements, read the info documentation inside the package (type 'info doc/imyplay.info').

Requirements:

  • a working GCC compiler (preferably DJGPP)
  • development package for the C library (comes with DJGPP)
  • if you want sound, not just MIDI conversion, a development package for one of the supported libraries (except PC-speaker, which requires only the C library and system support). If you don't have any of these installed or available, then go to
  • MIDI output requires the following functions from the standard C library: malloc(), realloc(), memset(), memcpy(), fopen(), fwrite(), fseek(), fclose() and qsort().
  • the sed utility (comes with DJGPP)
  • the zip utility (comes with DJGPP)
  • NASM assembler version >= 2.0 (http://www.nasm.us)
  • the upx utility (http://upx.sf.net) is optional. The program is compiled correctly without it.

To compile under DOS using DJGPP, either enable LFN support or find your GCC's limits.h file (NOT the standard one) and change the line

#include "syslimits.h"

to

#include "syslimit.h"

The run make -f Makefile.dos. If you don't have a make utility, you can run the dosdist.bat file.

The resulting imyplay.exe is the program to use.


Related

Wiki: Compiling