On Thu, 24 Nov 2011 15:51:34 -0800
Paul Bowyer <pbow...@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
applications.

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:

#+:mm-ecl-standalone
; 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...
-- 
Matt

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to