Tuesday, Aug 07
In my previous post about FreeDOS tools I mentioned that I hadn’t yet tried to get Gambit Scheme to compile
.scm code to a stand-alone
.exe. There are a couple of things you need to do.
If you’ve not installed to
C:\GAMBC, set the environment variable
%GAMBCDIRro point to where you installed it. This allows
_gambc.cwhich it needs to compile scheme to c.
Make sure you have the DJGPP C/C++ compilers installed.
For some “program.scm”:
gsc -c program.scm- this will create
gcc -L%GAMBCDIR -I%GAMBCDIR program_.c program.c -o program.exe -lgambc