Google Groups Home
Help | Sign in
Message from discussion Compiling Gambit on Windows
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
phi50...@yahoo.ca  
View profile
 More options Mar 28, 1:17 am
Newsgroups: comp.lang.scheme
From: phi50...@yahoo.ca
Date: Thu, 27 Mar 2008 22:17:22 -0700 (PDT)
Local: Fri, Mar 28 2008 1:17 am
Subject: Compiling Gambit on Windows
I am trying (without success) to compile Scheme programs using the
gambit compiler. I searched the web, and noticed that I am not the
only one who failed. The manual does not help much, since it gives
examples for Mac OS-X, and for Linux, but none for Windows. Here is
what I did:

gsc -link test.scm

This generates two files:

test.c
test_.c

I have been able to generate a test.o from these files, and  load it
from the interpreter. However, what I want is a stand alone exec file.
The manual recomends that I do the following:

gcc -L lib -lgambc test.c test_.c

I did it, but got the errors below. If anyone knows how to compile
gambit program on Windows (mingw), please, give me a hint.

D:\Gambit-C\v4.2.4>gcc -L lib -lgambc test.c test_.c
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/ccSqbaaa.o:test.c:(.text+0x68):
undefined refe
rence to `___gstate'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/ccSqbaaa.o:test.c:(.text+0x94):
undefined refe
rence to `___gstate'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/ccSqbaaa.o:test.c:(.text+0xa9):
undefined refe
rence to `___G_display'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/ccSqbaaa.o:test.c:(.text+0xe2):
undefined refe
rence to `___G_display'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/ccSqbaaa.o:test.c:(.text+0xe8):
undefined refe
rence to `___gstate'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/cce4baaa.o:test_.c:(.text+0x52):
undefined ref
erence to `___main_char'
C:\DOCUME~1\Eduardo\CONFIG~1\Temp/cce4baaa.o:test_.c:(.data+0x0):
undefined refe
rence to `____20___gambc'
collect2: ld returned 1 exit status

I am having problems with mzscheme too. In this case, I am able to
compile the programs, but not to optimize them. Since I do not know
the optimization options, my compiled programs a terribly large, and
inefficient (from 6 to 20 times slower than Bigloo, or Stalin,
depending on the problem). From the IDE, I could not find any tool for
setting optimization options. Again, if somebody knows how to improve
the speed, and size of DrScheme programs, let me know.  Of course, my
priority is Gambit, since I heard that it is the fastest Scheme in
town (smile :-).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google