[MLton] bug report: 20100608 mingw fails to link imported function
Wesley W. Terpstra
wesley at terpstra.ca
Tue Sep 21 15:53:33 PDT 2010
(Forwarded for the archive)
On Tue, Sep 21, 2010 at 11:28 AM, Bernard Berthomieu <bernard at laas.fr>wrote:
> let val intsize = _import "IntSize" : unit -> int;
> C:\Users\bernard\AppData\Local\Temp\fileaVhuWq.o:fake:(.text+0x38fc):
> undefined reference to `_imp__IntSize'
>
You are probably statically linking the symbol, not dynamically linking.
This distinction only matters on Windows.
Use _import "intSize" public : unit -> int;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton/attachments/20100922/abc84e66/attachment.htm
More information about the MLton
mailing list