<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=SV link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US>Hi<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I&#8217;m trying to compile and run an
example from DrScheme manual (Inside PLT Scheme), the attached file.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>However when I compile it with Visual
Studio and try to evaluate an scheme expression then I get the following fault
code.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>&gt;mzcscheme_b.exe &nbsp;(+ 3 3) <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>#f::0: read: expected a `)' to close `('<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Seg fault (internal error) at -33333330<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Does anyone know why this happens.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>On the other hand if I exclude the base.c
and send the expression as a file then the mzc can evaluate the scheme
expression and respond to it<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US>via the command
</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>v =
scheme_load(argv[i]).<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>I&#8217;ve created the
base.c file via the command prompt </span><span lang=EN-US>C:\APPL\PLT\mzc.exe
--vv --3m &nbsp;--c-mods &nbsp;base.c &nbsp;++lib &nbsp;scheme/base</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US>Both with the
&#8211;3m flag and without but with the same result.</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>My guess is that the file base.c is not
generated correctly, but does anyone knows howelse I can generate it?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Best Regards and thanks in advance<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Mohsen<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Mohsen
Torabzadeh-Tari<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Department of
Computer and Information Science<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Linköping University<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>SE-581 83 Linköping<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Sweden <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Phone +46 13 28 28 69<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Fax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+46 13 28 58 99<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Mobile +46 73 656 93
10<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>