[plt-scheme] Creating Executable

From: Jamie L. Raymond (raymond at ccs.neu.edu)
Date: Sat Sep 7 16:22:49 EDT 2002

Paulo J. Matos wrote:
> I'm trying to create a stand-alone executable with mzc. I read in
> help desk:
> The command-line flag --exe directs mzc to embed a module (from
> source or byte code) into a copy of the MzScheme executable.
> So I try:
> pdestroy at localhost:/usr/local/plt/bin$ mzc --exe ~/projects/moneyserv/accman.scm
> MzScheme compiler (mzc) version 202, Copyright (c) 1996-2002 PLT
> mzc: expects <file/directory/collection> [<file/directory/sub-collection>] ... on the command line, given 0 arguments
> 
> What's the problem?


Try 'mzc --help' and you'll find the answer.

...
| --exe <exe> : Embed module in MzScheme to create <exe>
...

Replace <exe> with the name of the file you want to create, like:

mzc --exe MyExecutable ~/projects/moneyserv/accman.scm

--
Jamie Raymond





Posted on the users mailing list.