Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output to *standard-output* doesn't work in console executables created with SAVE-APPLICATION #10

Closed
heegaiximephoomeeghahyaiseekh opened this issue Jun 5, 2015 · 3 comments

Comments

@heegaiximephoomeeghahyaiseekh

Try this at the REPL:

 (defun hello ()
     (format t "Hello, world!~%")
     (lisp-shutdown ""))

 (save-application "hello.exe" #'hello :console t)

The resulting hello.exe prints nothing when launched. However, the following program works fine:

(defun hello ()
    ;; Explicitly open the console.
    (with-open-file (*standard-output* "CON" :direction :output :if-exists :append)
        (format t "Hello, world!~%"))
    (lisp-shutdown ""))
@heegaiximephoomeeghahyaiseekh heegaiximephoomeeghahyaiseekh changed the title SAVE-APPLICATION produces non-working executables. Output to *standard-output* doesn't work in console executables created with SAVE-APPLICATION Jun 5, 2015
@ghost
Copy link

ghost commented Jul 25, 2015

For me, the two ways to use SAVE-APPLICATION, doesn't work at all (on Windows 7),
I will try on XP SP3, Windows Vista, and 8.1

@binghe
Copy link
Contributor

binghe commented Aug 20, 2015

Based on recent mail discussions, the issue is not a bug of CormanLisp.

@binghe binghe closed this as completed Aug 20, 2015
@heegaiximephoomeeghahyaiseekh
Copy link
Author

WTF? So SAVE-APPLICATION isn't supposed to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants