[MLton] Possible bug in MLton-7230.msi for MinGW and 64 bit questions

Wesley W. Terpstra wesley at terpstra.ca
Sun Nov 1 20:09:57 PST 2009


On Mon, Nov 2, 2009 at 5:02 AM, David Hansel
<hansel at reactive-systems.com> wrote:
> Sorry for the trivial questions so far.  Is there any 64 bit specific
> documentation that I am missing?

There is no 64-bit specific documentation. It's exactly the same as 32
bit, though.

> c:/program files (x86)/mlton/bin/../lib/gcc/x86_64-w64-mingw32/4.4.1/../../../..
> /x86_64-w64-mingw32/bin/ld.exe: cannot find -ldl
> (this is of course caused by the "-link-opt -ldl" parameter to MLton
> but if I leave that out then I get missing symbols).

The problem is that the dlfcn library from google is a 32-bit library.
You need a 64-bit library. This is a general problem; all libraries
you use must also be 64-bit.

Try the newest msi from <http://mlton.org/Experimental>. I included a
64-bit dlfcn in that build. It might not work, though. Please report
back if it does (or does not) work for you.

However, any other libraries you use you will have to find 64-bit
versions of yourself.



More information about the MLton mailing list