[MLton-user] Using MinGW version of MLton on Vista
Brian P. O'Hanlon
brianpo at cmu.edu
Fri Sep 5 06:53:57 PDT 2008
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