[plt-scheme] question about creating an executable under Windows using Allegro
Jon Rafkind wrote:
> Alex Mitchell wrote:
>> I've been using Jon Rafkind's Allegro implementation under Dr. Scheme
>> on Windows to create a simple implementation of Logo's turtle
>> graphics. Unfortunately, when I try to create and run an executable,
>> I have problems running the executable.
>>
>> Just in case I was doing something strange in my code, I tried
>> creating an executable from the first example from the Allegro Scheme
>> documentation. It runs fine within Dr. Scheme, and it also compiles
>> fine, but when I run the .exe from Windows I get the following error:
>>
>>
>> require: unknown module: #%foreign
>>
> I finally got around to trying this myself but everything worked fine
> for me. I did this
> $ mzc --exe wormhole wormhole.ss
> Which created wormhole.exe and ran fine( well I had to add (run) to
> the bottom of the module)
>
> Can you show what options you used with mzc? Also can you paste all
> your source so I can reproduce your problem?
Can you add -v to mzc too. Here is what I see
C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\planet\300\360\cac
he\kazzmir\allegro.plt\2\1\examples>mzc -v --exe wormhole wormhole.ss
mzc version 360, Copyright (c) 2004-2006 PLT Scheme Inc.
Copying to #<path:wormhole.exe>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\examples\wormhole.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\image.ss>
Getting #<path:c:\progra~1\plt\collects\mzlib\foreign.ss>
Getting #<path:c:\progra~1\plt\collects\setup\dirs.ss>
Getting #<path:c:\progra~1\plt\collects\config\config.ss>
Getting #<path:c:\progra~1\plt\collects\setup\configtab.ss>
Getting #<path:c:\progra~1\plt\collects\compiler\private\winutf16.ss>
Getting #<path:c:\progra~1\plt\collects\compiler\private\mach-o.ss>
Getting #<path:c:\progra~1\plt\collects\syntax\stx.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\private\allegro.ss>
Getting #<path:c:\progra~1\plt\collects\mzlib\foreign.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\util.ss>
Getting #<path:c:\progra~1\plt\collects\mzlib\foreign.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\private\allegro.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\image.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\keyboard.ss>
Getting #<path:C:\Documents and Settings\kazzmir\Application Data\PLT
Scheme\pla
net\300\360\cache\kazzmir\allegro.plt\2\1\private\allegro.ss>
Getting #<path:c:\progra~1\plt\collects\mzlib\list.ss>
Getting #<path:c:\progra~1\plt\collects\mzlib\list.ss>
Writing module from #<path:C:\Documents and Settings\kazzmir\Application
Data\PL
T Scheme\planet\300\360\cache\kazzmir\allegro.plt\2\1\examples\wormhole.ss>
Writing module from #<path:C:\Documents and Settings\kazzmir\Application
Data\PL
T Scheme\planet\300\360\cache\kazzmir\allegro.plt\2\1\keyboard.ss>
Writing module from #<path:c:\progra~1\plt\collects\mzlib\list.ss>
Writing module from #<path:C:\Documents and Settings\kazzmir\Application
Data\PL
T Scheme\planet\300\360\cache\kazzmir\allegro.plt\2\1\util.ss>
Writing module from #<path:C:\Documents and Settings\kazzmir\Application
Data\PL
T Scheme\planet\300\360\cache\kazzmir\allegro.plt\2\1\image.ss>
Writing module from #<path:C:\Documents and Settings\kazzmir\Application
Data\PL
T Scheme\planet\300\360\cache\kazzmir\allegro.plt\2\1\private\allegro.ss>
Writing module from #<path:c:\progra~1\plt\collects\mzlib\foreign.ss>
Writing module from #<path:c:\progra~1\plt\collects\syntax\stx.ss>
Writing module from #<path:c:\progra~1\plt\collects\setup\dirs.ss>
Writing module from
#<path:c:\progra~1\plt\collects\compiler\private\mach-o.ss>
Writing module from
#<path:c:\progra~1\plt\collects\compiler\private\winutf16.ss
>
Writing module from #<path:c:\progra~1\plt\collects\config\config.ss>
Writing module from #<path:c:\progra~1\plt\collects\setup\configtab.ss>
Setting command line
[output to "wormhole.exe"]