[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] Compiling on Windows
From: |
Russell Wallace |
Subject: |
[Gcl-devel] Compiling on Windows |
Date: |
Wed, 29 Oct 2008 19:53:34 +0100 |
I have a GCL install on Windows that works fine in interpreter mode,
and I'm trying to get it to compile a program, i.e. via GCC. Google
finds the following suggested methods:
(compile-file "main.lisp":system-p t)
(compiler::link '("main.o" "libuser32.a") "main.exe")
Result:
Compiling main.lisp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0,
Speed=3
Finished compiling main.lisp.
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\ayane>dir *.exe
Volume in drive C is OS
Volume Serial Number is 0422-C2D0
Directory of C:\ayane
29/10/2008 09:43 454,232 raw_main_map.exe
1 File(s) 454,232 bytes
0 Dir(s) 67,711,852,544 bytes free
C:\ayane>raw_main_map.exe
Program too big to fit in memory
The other suggested method:
C:\ayane>\PROGRA~1\GCL-2.6.6-ANSI\lib\gcl-2.6.6\unixport
\saved_ansi_gcl -compile
main.lisp
Compiling main.lisp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0,
Speed=3
Finished compiling main.lisp.
C:\ayane>gcc -o main.exe main.o \PROGRA~1\GCL-2.6.6-ANSI\mingw\lib
\libuser32.a
main.o(.text+0xb):main.c: undefined reference to `vs_base'
main.o(.text+0x17):main.c: undefined reference to `vs_limit'
main.o(.text+0x1d):main.c: undefined reference to `vs_top'
[a couple more screenfuls of undefined references]
In both cases, the problem isn't with the compiling step per se, but
with the linking. Any idea what I'm doing wrong or what the correct
procedure is?
- [Gcl-devel] Compiling on Windows,
Russell Wallace <=