[plt-scheme] Windows Native exe

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sun Mar 11 04:33:48 EDT 2007

Actually, for MzScheme v360 and module language, you should 
be able to just use menu command "Scheme"-"Create Executable"
to get Windows Native exe.

Chongkai

----- Original Message ----- 
From: "Chongkai Zhu" <czhu at cs.utah.edu>
To: <a_fasano at hotmail.com>; <plt-scheme at list.cs.brown.edu>
Sent: Saturday, March 10, 2007 9:04 PM
Subject: Re: [plt-scheme] Windows Native exe


> Shoud you use libmzsch360_000.lib/libmzgc360_000.lib
> instead of libmzschxxxxxxx/libmzgcxxxxxxx?
> 
> Chongkai
> 
> ----- Original Message ----- 
> From: <a_fasano at hotmail.com>
> To: <plt-scheme at list.cs.brown.edu>
> Sent: Saturday, March 10, 2007 12:36 PM
> Subject: [plt-scheme] Windows Native exe
> 
> 
>> 
>> Given a standard  mzscheme 360 distribution and the MS linker  8.00.50727, I
>> try to build as a native exe the file:
>>  c:\mz-360\src\worksp\mzscheme\ciao\ciao.scm
>> 
>> containing:
>> 
>> (module ciao2 mzscheme 
>>  (begin
>>    (display "Hello, World!")
>>    (newline))  
>> )
>> 
>> 
>> To build I first run:
>> 
>> cd c:\mz-360\src\worksp\mzscheme\ciao
>> mzc --object    --embedded ciao.scm
>> mzc --link-glue --embedded ciao.kp ciao.obj 
>> 
>> And then I build with:
>> 
>> cd ..
>> set LINKSTR=/OUT:ciao.exe /DEBUG /PDB:"..\..\..\MzScheme.pdb"
>> /SUBSYSTEM:CONSOLE
>> set LINKSTR=%LINKSTR% unicows.lib  user32.lib
>> set LINKSTR=%LINKSTR% "..\..\..\lib\msvc\libmzgcxxxxxxx.lib"
>> "..\..\..\lib\msvc\libmzschxxxxxxx.lib" 
>> set LINKSTR=%LINKSTR% ".\Debug\main.obj" ".\Debug\mzscheme.res"
>> ".\Debug\uniplt.obj" 
>> set LINKSTR=%LINKSTR% "ciao\_loader.obj" "ciao\ciao.obj"
>> /NODEFAULTLIB:libcmt
>> link %LINKSTR%  
>> 
>> 
>> 
>> Unfotunately when I copy the exe in the c:\mz-360\lib directory, I get:
>> 
>> "Cannot load libmzgcxxxxxxx.dll" error.
>> 
>> Can you help, please.
>> 
>> Antonio
>> 
>> _________________________________________________
>>  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
>

Posted on the users mailing list.