[Ecls-list] c::build-program error: "Cannot find entry point for binary file"
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Thu Feb 16 16:26:14 UTC 2012
On Tue, Feb 14, 2012 at 8:21 PM, bob <bobatnet at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120216/6996cd76/attachment.html>
-------------- next part --------------
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"
More information about the ecl-devel
mailing list