[MLton-user] Using MinGW version of MLton on Vista
John Reppy
t-johrep at microsoft.com
Fri Sep 5 07:16:27 PDT 2008
Unix doesn't have an EOF character (and I did an od to check that there
wasn't anything funny at the end of the file; just a newline). Regular
sml files created with a Unix editor (vi) go through MLton w/o problems.
The problem appears to be related to my pathmap, which is pretty simple:
$ cat /c/Users/t-johrep/Work/sml3d/src/sml3d-path-map
SMLXD_LIB /c/Users/t-johrep/Work/sml3d/src
If I remove references to $(SMLXD_LIB) from my mlb file, then I don't get
the parse error anymore.
- John
-----Original Message-----
From: brainpo at gmail.com [mailto:brainpo at gmail.com] On Behalf Of Brian P. O'Hanlon
Sent: 05 September 2008 14:54
To: John Reppy
Cc: mlton-user at mlton.org
Subject: Re: [MLton-user] Using MinGW version of MLton on Vista
On Fri, Sep 5, 2008 at 9:38 AM, John Reppy <t-johrep at microsoft.com> wrote:
> Thanks for the pointer. The r6811 msi version works better for me, although
> it installs its own copy of MSYS and MinGW,
>
> which seems strange. The problem that I'm hitting now is that MLton is
> reporting a syntax error on a mlb file (the file in
>
> question has been used successfully on both Linux and Mac OS X systems).
>
>
>
> $ make
>
> /bin/mlton -const 'Exn.keepHistory true' -mlb-path-map
> /c/Users/t-johrep/Work/sml3d/src/sml3d-path-map -link-opt
> '-L/c/Users/t-johrep/Work/sml3d/windows/lib –lglut32 -lglu32 -lopengl32
> /c/Users/t-johrep/Work/sml3d/src/glut/glut-glue.o' -output ortho main.mlb
>
> Error: main.mlb 27.0.
>
> Parse error.
>
> compilation aborted: parseAndElaborate reported errors
>
> make: *** [ortho] Error 1
>
>
>
> The MLB file is
>
> <snip>
> 26
>
>
>
> So the error is at the end of the file.
>
Try opening the file in a windows text editor, deleting the last line,
and then re-adding an empty line. It is probably choking on the UNIX
EOF character, which is not the same as the Windows EOF character.
-Brian
More information about the MLton-user
mailing list