[plt-scheme] Re: Make executable with mzc
You only have a single .zo file?
Well, I think that I'm out of luck. Its too hard to figure out what
the missing information is. If you want to send me your program
(offlist) I will try to see if I can make it work.
Robby
On Dec 20, 2007 1:36 PM, OXINARF <francisco.ns.ferreira at gmail.com> wrote:
> Ok, let's see if I understand what you said. I've put my file writed
> as a module, but without provide (you have that require, is it
> necessary? Because I have it in my code...), in an x directory. Then
> created a compiled subdirectory where I have put interface.zo
>
> If it is this it doesn't work. It says: reference to an identifier
> before its definition: send
> It should have to do with local of interface.zo
>
> But I did an executable and it give the same first error.
>
> On 20 Dez, 19:04, "Robby Findler" <ro... at cs.uchicago.edu> wrote:
> > I'm having a little trouble figuring out what is going on, but here's
> > one thing to try. Put your file in some directory, lets say "x". then,
> > make a compiled subdirectory of it (x/compiled) and put the .zo file
> > in there. Then, change your wrapper so that it looks like this:
> >
> > _________________________________________________
> > For list-related administrative tasks:
> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > (module <name of file> mzscheme
> > (require "interface.ss")
> > <my code>)
> >
> > and run it in DrScheme and then try to create an executable from
> > within drscheme, in the module language.
> >
> > Robby
> >
>
> > On Dec 20, 2007 12:59 PM, OXINARF <francisco.ns.ferre... at gmail.com> wrote:
> >
> >
> >
> > > First of all thank you both for help.
> >
> > > Unfortunately I only have zo file.
> >
> > > Robby in my code I have a require: (require "interface.zo"), so to
> > > module work I think I must have that provide.
> >
> > > I've just find out that the problem is with that file. I've removed
> > > the require and all references to functions provided by it and the
> > > message didn't appear. But I don't understand why it works on DrScheme
> > > and not with the executable.
> >
> > > Any idea?
> >
> > > On 20 Dez, 18:48, "Robby Findler" <ro... at cs.uchicago.edu> wrote:
> > > > Is the only reference to interface.zo (or interface.ss) the one you
> > > > showed in your original message? If so, you should be able to just
> > > > remove it. If not, is there a require line?
> >
> > > > _________________________________________________
> > > > For list-related administrative tasks:
> > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > > > Robby
> >
> > > > On Dec 20, 2007 12:41 PM, OXINARF <francisco.ns.ferre... at gmail.com> wrote:
> >
> > > > > No, it gives same error (this with module language).
> >
> > > > > On 20 Dez, 17:48, "Robby Findler" <ro... at cs.uchicago.edu> wrote:
> > > > > > Can you create the executable from inside drscheme?
> >
> > > > > > _________________________________________________
> > > > > > For list-related administrative tasks:
> > > > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > > > > > Robby
> >
> > > > > > On Dec 20, 2007 11:17 AM, OXINARF <francisco.ns.ferre... at gmail.com> wrote:
> >
> > > > > > > When I run DrScheme with language module all works fine.
> >
> > > > > > > On 20 Dez, 14:04, Jens Axel Soegaard <jensa... at soegaard.net> wrote:
> > > > > > > > OXINARF wrote:
> > > > > > > > > No, has I said I used Graphical (MrEd with MzScheme).
> >
> > > > > > > > What does it say, when you use module?
> >
> > > > > > > > --
> > > > > > > > Jens Axel Søgaard
> >
> > > > > > > > > On 19 Dez, 20:57, Jens Axel Soegaard <jensa... at soegaard.net> wrote:
> > > > > > > > >> OXINARF wrote:
> > > > > > > > >>> I had a work for university, where teachers gave us one compiled file
> > > > > > > > >>> with an interface for the program that we have to do. The language
> > > > > > > > >>> used was Graphical (MrEd with MzScheme).
> > > > > > > > >>> I have writte all the code, and it's all working. But since it's my
> > > > > > > > >>> first "job" I would like to put it on an executable that I can share
> > > > > > > > >>> with everyone (people already asked me for it). So I tried it with
> > > > > > > > >>> mzc. But it requires modules to one executable, so I simply put:
> > > > > > > > >>> (module <name of file> mzscheme
> > > > > > > > >>> <my code>
> > > > > > > > >>> (provide (all-defined) (all-from "interface.zo")))
> > > > > > > > >>> where interface.zo is file that teachers gave us.
> > > > > > > > >>> Now I go do following command: C:\Programas\PLT\mzc.exe --gui-exe
> > > > > > > > >>> Sudoku FP0708-10.scm (first the path for mzc than the commands,
> > > > > > > > >>> FP0708-10.scm is name of file with module).
> > > > > > > > >>> All seems done but when I tried to execute file Sudoku it gives me:
> > > > > > > > >>> define: not allowed in an expression context in: (define on-event
> > > > > > > > >>> (lambda (event) (#<procedure:on-event-aux> event)))
> > > > > > > > >>> === context ===
> > > > > > > > >>> #f::355: loop
> > > > > > > > >>> I don't know why, because on DrScheme, everything is doing just fine.
> > > > > > > > >> Which language mode did you use in DrScheme? module?
> >
> > > > > > > > >> --
> > > > > > > > >> Jens Axel Søgaard
> >
> > > > > > > > >> _________________________________________________
> > > > > > > > >> For list-related administrative tasks:
> > > > > > > > >> http://list.cs.brown.edu/mailman/listinfo/plt-scheme-Ocultartextocitado-
> >
> > > > > > > > >> - Mostrar texto citado -
> > > > > > > > > _________________________________________________
> > > > > > > > > For list-related administrative tasks:
> > > > > > > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > > > > > > > _________________________________________________
> > > > > > > > For list-related administrative tasks:
> > > > > > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme-Ocultartextocitado -
> >
> > > > > > > > - Mostrar texto citado -
> > > > > > > _________________________________________________
> > > > > > > For list-related administrative tasks:
> >
>
> > > > > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme-Ocultartexto citado -
> >
> > > > > > - Mostrar texto citado -
> > > > > _________________________________________________
> > > > > For list-related administrative tasks:
> > > > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme-Ocultar texto citado -
> >
> > > > - Mostrar texto citado -
> > > _________________________________________________
> > > For list-related administrative tasks:
> > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme- Ocultar texto citado -
> >
> > - Mostrar texto citado -
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>