Chicken-scheme compiler issue.

Епишин Василий Ильич via Ch icken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <CA+7Ldxmx8jwy3U9TnCBwJhWshs4Xd+Jvs+vb+jipnSnES8XP2Q@mail.gmail.com>
Hello! I'm a new chicken-scheme user.

Toolchain info:
```
$ csi -version
CHICKEN
(c) 2008-2021, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 5.3.0 (rev e31bbee5)
linux-unix-gnu-x86-64 [ 64bit dload ptables ]

gcc version 14.0.1 20240411 (Red Hat 14.0.1-0) (GCC)

$ uname -a
Linux fedora 6.9.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jul 27
15:56:15 UTC 2024 x86_64 GNU/Linux
```

`echo.scm` program:
```
#!/usr/bin/csi -ss
(import (chicken process-context))
(define (main args)
        (map (lambda (s) (display s) (display " ")) args)
        (newline)
)
```
Perfect works as script!

But it doesn't work after compiling:
```
$ ./echo.scm arg1 arg2
arg1 arg2
$ csc -postlude "(main (command-line-arguments))" echo.scm
$ ./echo arg1 arg2
$
$ echo $?
0
```
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.