On Tue, Feb 14, 2012 at 8:21 PM, bob <bobat...@gmail.com> wrote:

> I am trying to compile this code into a standalone executable, but all I
> am getting is an error:
>
> (defun callme () (format t "hello"))
>
> (callme)
> (sleep 3)
> (quit)
>
> The compilation phase gets over fine, emtting hello.obj. But while
> building the standalone binary, it says that it cant find the program entry
> point:
>
> >> (c:build-program "hello" :lisp-files '("hello.obj"))
>
> Debugger received error: Cannot find out entry point for binary file
> hello.obj
>

The previous line has already been executed from the debugger. This points
out that the compiler found an error and aborted compilation, which is why
hello.obj does not have any entry point. I have tried this all with a
trivial file in Windows and it works (log attached).

Juanjo

-- 
Instituto de FĂ­sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
c:\cygwin\home\jjgarcia\msvc>type foo.lsp
(defun hola (x)
  (print x))

(hola "HOLA")

(ext:quit)

c:\cygwin\home\jjgarcia\msvc>type build.lsp
(require :cmp)
(setf c::*compile-in-constants* t)
(compile-file "foo.lsp" :system-p t)
(c:build-program "foo" :lisp-files '("foo.obj"))
(ext:quit)

c:\cygwin\home\jjgarcia\msvc>ecl -norc -load build.lsp
;;; Loading "c:/cygwin/home/jjgarcia/msvc/build.lsp"
;;; Loading #P"c:/cygwin/home/jjgarcia/msvc/cmp.fas"
;;;
;;; Compiling foo.lsp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; Compiling (DEFUN HOLA ...).
;;; End of Pass 1.
;;; Emitting code for HOLA.
foo.c
;;; Finished compiling foo.lsp.
;;;
eB6B1tmp.c
   Creating library c:/cygwin/home/jjgarcia/msvc/foo.lib and object c:/cygwin/ho
me/jjgarcia/msvc/foo.exp
c:\cygwin\home\jjgarcia\msvc>foo.exe

"HOLA"
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to