[MLton-user] Re: Compiling ML/C Program to dll / Writing a Java GUI for an ML program

Steffen J. Smolka steffen.smolka at in.tum.de
Wed Aug 3 03:31:05 PDT 2011


I just realized I sent my earlier replies to Matthew instead of the mailing
list.
Sorry for that :/

I did get MLton to compile a dll, so I will have to work on the intgration
with
Java next:

I got it working with the following makefile:
>
>> mlton  -default-ann "allowFFI true" \
>> -export-header test.h \
>> -stop tc \
>>  test.sml
>>
>> gcc -c -Wall main.c
>>
>> mlton  -default-ann "allowFFI true" \
>> -format library \
>>  -libname fac \
>> test.sml main.o
>
> The Link http://mlton.org/LibrarySupport was very helpful, I'm not sure
> why I didn't find it myself :/
>
> @Christof: It would indeed be helpful to hear how you managed to transfer
> data between Java and SML.
> Did you use a C interface like I was considering?
> @All: Thanks a lot for the quick help!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton-user/attachments/20110803/a8a7b8ad/attachment.html


More information about the MLton-user mailing list