[Ecls-list] I need a little more help

Matthew Mondor mm_lists at pulsar-zone.net
Fri Nov 25 08:10:38 UTC 2011

On Thu, 24 Nov 2011 15:51:34 -0800
Paul Bowyer <pbowyer at olynet.com> wrote:

> I know that the application runs without problems because from the ECL 
> prompt, I can do:
>      (load "clx-gui")
>      (clx-gui:start)
> which runs the application.
> So again I ask:
> What is the proper way to access a particular function of a stand-alone 
> executable at start up? Is it done somehow in the ".asd" file or by 
> passing arguments to the executable? I again tried various renditions of 
> (eval-when... but without success. I haven't yet discovered the correct 
> combination and I've run out of things I can think of to try.

As Juan said, I find it simpler to simply add in the main lisp file at
the top level the statements to initialize and start standalone

If this can be of help, you can also make the wanted code conditional
for the standalone-only mode.  For instance, in a build script for an
application of mine, I add:

(pushnew :mm-ecl-standalone *features*)

Before issuing the compile commands.
The application code can thus use:

; Place standalone-mode form here

And that code can deal with command line arguments, setup a debugger
wrapper and call the application's main init code...

More information about the ecl-devel mailing list