matthiasbock / CAM-Interpreter

0 stars 0 forks source link

Code is not ANSI C compatible #1

Closed matthiasbock closed 8 years ago

matthiasbock commented 8 years ago

...so it doesn't compile with Borland Turbo C++ Version 1.01 on MS-DOS 6.22, where it's supposed to run.

matthiasbock commented 8 years ago

Options:

  1. compile a DOS-compatible EXE under Linux
  2. make code ANSI-C conform
matthiasbock commented 8 years ago

1a) use MinGW-GCC to compile natively on Linux (do these EXEs work with MS-DOS?) 1b) run Borland Turbo C++ in a virtualized environment, like DOSBox or DOSemu

2) compile for ANSI C syntax using GCC:

gcc -ansi -pedantic-errors ...
matthiasbock commented 8 years ago

Nikolaus.c is now C-89 compatible. Main problems were: