Installing 16 bit C/C++ Compilers

From docs
Jump to navigation Jump to search

Installing Open Watcom C++ Compiler

Follow the same instructions as above but choose Open Watcom C/C++ compiler instead of I16*

Insert the following into your FDAUTO.BAT file

set DJGPP=c:\devel\djgpp\djgpp.env
set PATH=c:\DEVEL\DJGPP\BIN;c:\devel\watcomc\binw;%PATH%
c:\devel\watcomc\owsetenv.bat


Installing I16GNU

The I16GNU compiler currently does not support C++. If you want to compile programs in that language use the Open Watcom compiler.

  1. If you are running FreeDOS 1.3 then you will have an option to install the I16GNU compiler from the bonus CD.
  2. Unzip the img file in the bonus cd using 7zip and copy the package folder to the devstudio\runtimes\FreeDOS\install directory created earlier.
  3. start fdimples to install the following packages.
    1. DJGPP Environment
    2. DJGPP make
    3. All I16* packages
  4. Put the following into your autoexec.bat or FDAUTO.BAT file inside your freeDOS C:\ drive
set DJGPP=c:\devel\djgpp\djgpp.env
set PATH=c:\DEVEL\I16GNU\BIN;c:\DEVEL\DJGPP\BIN;%PATH%


Once that is setup you can compile a test or hello world program and transfer the compiled exe file to your 16-bit machine and try it out.