Re: [Chicken-users] How to tell csc to call main?

2014-12-19 Thread Moritz Heidkamp
Hi, Christian Kellermann writes: > Call (main) at toplevel. If you want to change the behaviour depending > on whether the code is compiled or interpreted you can use cond-expand > testing for feature 'compiling alternatively pass an option like this to csc: -postlude '(main (command-line-arg

Re: [Chicken-users] How to tell csc to call main?

2014-12-19 Thread Christian Kellermann
Hi! * Sascha Ziemann [141219 14:43]: > How to tell csc to call main in the same way like "csi -ss"? > csc does not seem to have a -ss option. Call (main) at toplevel. If you want to change the behaviour depending on whether the code is compiled or interpreted you can use cond-expand testing for

[Chicken-users] How to tell csc to call main?

2014-12-19 Thread Sascha Ziemann
Hi, How to tell csc to call main in the same way like "csi -ss"? $ cat distribution.scm #! /usr/bin/csi -ss (define (main args) (display "main\n")) $ ./distribution.scm main $ csc distribution.scm $ ./distribution $ csc does not seem to have a -ss option. Regards, Sascha __