[plt-scheme] Creating Executable
The problem here seems to be that you are not instructing mzscheme to output
anything.
Note that if you put those two expression in "double.scm" and you run it with
"mzscheme -r double.scm", nothing will be printed.
You should try something along "(display (double 2))".
Guillaume
On Saturday 07 September 2002 10:58, Paulo J. Matos wrote:
>
> Hi Robert,
>
> I've been checking and it's not just my program. Here it is what
> I've done in PLT-Scheme 202 running in Linux Slack Kernel 2.4.17
> (running binaries, not compiled in my system) with current
> language 'Pretty Big':
> I started Drscheme.
> I entered the following in the definitions window:
> (define double
> (lambda (x) (* 2 x)))
>
> I've executed and checked in the interactions window:
> > (double 2)
>
> 4
> Ok, it's running fine.
> I've saved it in home dir as double.scm.
> Then I've clicked Scheme->Create Executable and it created a
> file named double which is executable.
> In bash:
> pdestroy at localhost:~$ ./double
> pdestroy at localhost:~$
>
> It was as if nothing happened.
>
> Any ideas?
>
> Best regards,
>
> Paulo
>
> > For list-related administrative tasks:
> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > Hi Paulo,
> >
> > When you create an executable, running the executable should behave
> > exactly the same as executing the program. Beyond that, I'm not sure
> > what sort of problems you are having. Can you send a small program that
> > demonstrates your programs and let us know what platform and version of
> > DrScheme you are using?
> >
> > Thanks,
> > Robby
> >
> > At 07 Sep 2002 12:58:17 +0100, Paulo J. Matos wrote:
> > > For list-related administrative tasks:
> > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > >
> > > Hi all,
> > >
> > > I'd like to know more details about creating executables.
> > > I've been reading docs and I've two questions to make.
> > > When, under DrScheme I create an executable, an executable is
> > > created but it doesn't work. How will it know which function to
> > > call when we run it? Is there any special syntax?
> > > What's the difference of creating stand-alone executables from
> > > scheme or native code?
> > >
> > > Best regards,
> > >
> > > --
> > > Paulo J. Matos : pocm(_at_)mega.ist.utl.pt
> > > Instituto Superior Tecnico - Lisbon
> > > Software & Computer Engineering - A.I.
> > > - > http://mega.ist.utl.pt/~pocm
> > > ---
> > > Yes, God had a deadline...
> > > So, He wrote it all in Lisp!