HomeScheme Language

Gambit-C for Windows

This page is dedicated to compiling the Windows version of the Gambit-C Scheme using mingw32 cross-compiler.

Please note that there are at least three other Windows versions of Gambit. At the Gambit site you can find the source distributions of Gambit-C for Windows which are designed for Borland, Watcom and MS compilers and the DOS/DJGPP version.

The compilation of the Gambit using mingw32 is easy using slightly modified versions of configuration files for djgpp which are provided with Gambit distribution.
These changes are minimal: the names of the compiler, linker and archiver are changed and the math coprocessor emulation library is excluded.

Gambit-C compilation using mingw32 compiler
This compilation was only done on RedHat 6.x Linux but there is nothing system specific here.
  1. You need Gambit-C source distribution and mingw configuration files from conf_mingw.tgz.
    By the way, you need mingw32 installed :-)
    Tested versions are Gambit-C 3.0 and i386-mingw32-gcc ver. 2.8.1.
  2. Unpack Gambit sources.
  3. Put conf_mingw and conf_mingw.sed configuration files in the misc directory.
  4. Make the conf_mingw file executable (chmod +x conf_mingw).
  5. From the main distribution directory run misc/conf_mingw.
  6. Run make from the main distribution directory.
Installation of the compiled Gambit interpreter
Copy gsi.exe into any directory which is in your path.
You can find it in gsi subdirectory after compilation or download zipped binary from this site. Disclaimer and other statements
  1. Use this port at your own risk.
  2. Provided binary executable is the subject of Gambit-C copyright!
  3. Please, take into the account that Windows is NOT my primary environment and I can't provide any significant support. As you can see, even the binaries provided here are compiled under the Linux.
  4. It works fine for me and my students but originally it was just a quick hack!
Download
  1. conf_mingw and conf_mingw.sed - Configuration files for source code compilation. Put them in misc directory, then from the main distribution directory run misc/conf_mingw and make
  2. gsimingw.zip - Interpreter
  3. gscmingw.zip - Compiler
  4. libgambc.so.gz - Shared Library
HomeScheme Language