gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Compiling on Windows


From: Donald Winiecki
Subject: Re: [Gcl-devel] Compiling on Windows
Date: Wed, 29 Oct 2008 15:43:02 -0600

Hi Russell,
 
I see you're using 2.6.6-ANSI.  I can't guarantee success, but I wonder if you've tried the 2.6.7 Win32 build?  It is available at ftp://ftp.gnu.org/pub/gnu/gcl/
 
Look for the file named: ftp://ftp.gnu.org/pub/gnu/gcl/gcl_2.6.7.mingw32_ansi_japi_20080106.exe
 
Best,
 
_don winiecki

>>>
From: "Russell Wallace" <address@hidden>
To: <address@hidden>
Date: 10/29/2008 12:54 PM
Subject: [Gcl-devel] Compiling on Windows
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 mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gcl-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]