[MLton] mingwows

Wesley W. Terpstra wesley@terpstra.ca
Fri, 14 Oct 2005 01:04:32 +0200


--Apple-Mail-9-613617362
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

On Oct 14, 2005, at 12:08 AM, Andrew Kennedy wrote:
> This is great. After fixing a minor typo in mlton.bat (set cc= instead
> of set gcc=) I was able to compile small programs.

Ahh yes. :-)

> However, on a larger test I got some link errors:
> c:\mlton\lib/self/libmlton.a(strto.o)(.text+0x25):strto.c: undefined
> reference to `gdtoa_strtod'
> Any ideas what I might be missing?

The batch file is not very well tested...
I was using the bash script in msys most of the time. :-)

Attached is a better batch file.

--Apple-Mail-9-613617362
Content-Transfer-Encoding: quoted-printable
Content-Type: application/octet-stream;
	x-unix-mode=0700;
	name="mlton.bat"
Content-Disposition: attachment;
	filename=mlton.bat

@echo=20off=0D=0Aset=20lib=3Dc:\MLton\lib=0D=0Aset=20=
cc=3Dc:\MinGW\bin\gcc.exe=0D=0A=0D=0Aset=20world=3D%lib%\world.mlton=0D=0A=
set=20mlton=3D%lib%\mlton-compile.exe=0D=0A=0D=0Aset=20=
ccopts=3D-I%lib%\include=20-O1=20-fno-strict-aliasing=20=
-fomit-frame-pointer=20-w=0D=0Aset=20ccopts=3D%ccopts%=20=
-fno-strength-reduce=20-fschedule-insns=20-fschedule-insns2=0D=0Aset=20=
ccopts=3D%ccopts%=20-malign-functions=3D5=20-malign-jumps=3D2=20=
-malign-loops=3D2=20-mtune=3Dpentium4=0D=0Aset=20linkopts=3D-L%lib%\lib=20=
-lgdtoa=20-lgmp=20-lws2_32=20-lkernel32=20-lpsapi=20-lnetapi32=0D=0A=0D=0A=
%mlton%=20@MLton=20load-world=20%world%=20--=20%lib%=20-cc=20%cc%=20=
-cc-opt=20"%ccopts%"=20-link-opt=20"%linkopts%"=20%1=20%2=20%3=20%4=20%5=20=
%6=20%7=20%8=20%9=0D=0A=

--Apple-Mail-9-613617362--