[gambit-list] Compiling Gambit programs under Windows...
Marc Feeley
feeley at iro.umontreal.ca
Fri Mar 28 23:02:18 EDT 2008
On 28-Mar-08, at 1:42 AM, Philippos Apolinarius wrote:
> I would like to compile Gambit programs on Windows. I have
> installed a minimum gcc, that I use to compile Lisp, Maxima,
> Bigloo, Stalin, and other languages that compile through C. I tried
> to compile Gambit programs, to no avail. Here is what I have done:
>
> gsc test.scm
>
> This generates the file test.o1, that I can load from the
> interpreter. However, I cannot use interpreted code (or large
> distribution files, btw) for assignments. The nex thing I tried
> was...
>
> gsc -link test.scm
>
> This gives me test.c test_.c. The manual says that I should compile
> these files, but do not tell how to do it for Windows (there are
> examples for Mac OS-X, and Linux). I tried:
>
> gcc -lgambc -lm test.c test_.c
>
> I get a large number of errors, and that is all.
On Windows, this should work (tested with MinGW):
% gsc -link test.scm
% gcc -IC:/PROGRA~1/Gambit-C/v4.2.5/include -LC:/PROGRA~1/Gambit-C/
v4.2.5/lib -D___SINGLE_HOST test.c test_.c -lgambc -lws2_32 -o test.exe
% test.exe
Marc
More information about the Gambit-list
mailing list