<div dir="ltr">On Fri, Sep 5, 2008 at 5:16 PM, John Reppy <span dir="ltr">&lt;<a href="mailto:t-johrep@microsoft.com">t-johrep@microsoft.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-GB">

<div><div><p style="margin-bottom: 12pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I think that the problem is
with the path in the pathmap file.&nbsp; Switching to "c:\Users\..."
got rid of the parse error.&nbsp; By using `pwd –W` in my autoconf
script, I'm able to get working pathnames.&nbsp; Now I just need to
figure out my linking errors with glut.</span></p></div></div></div></blockquote><div>Sorry I wasn&#39;t very clear. The pathmap is read directly by MLton. It doesn&#39;t come from the msys command-line. Therefore there is no translation applied by msys to turn /c/foo into c:/foo as MLton expects. So, yes, you need to use c:/foo in your mlb-path-map.<br>
<br>Any place in SML code where you use paths, you &gt;must&lt; use &quot;c:/foo&quot;. MLton and MLton-compiled programs have no idea about this &quot;/c/foo&quot; stuff. Those paths only work when you use them on the msys/bash command-line where msys will auto-translates them. That means any config or data files you refer to within your source must not be using strings like &quot;/c/bar&quot; -- that file doesn&#39;t exist (unless you have a directory called &#39;c&#39;). Similarly, mlb files, mlb-path-maps, and the names of invoked/piped helper program must not use the /c/ notation. In fact, ideally, even msys command-line invocation shouldn&#39;t use this notation, so as to avoid confusion. Just try to use c:/foo/bar everywhere.<br>
<br>That said, a parse error pointing at the bottom of the mlb file is a very
unhelpful and misleading error message, and someone familiar with that
part of the code should probably improve this.<br>
<br>
And, again be warned that MLton on Vista is 100% untested!<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-GB">
<div><div><p style="margin-bottom: 12pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>

<p style="margin-bottom: 12pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">BTW: I was not able to get
the latest version of mlton to build from svn using this version of
mlton.&nbsp; There are illegal characters in the generated C files.</span></p></div></div></div></blockquote></div>That&#39;s strange. I&#39;ve been compiling it without problems. There was a recent change committed that modified a few IntInf macro names and broke my unclean build. However, a clean build of svn/HEAD with the r6811 msi install should work (on XP/2003/etc).<br>
<br></div>