[MLton] bug report: 20100608 mingw fails to link imported function

Bernard Berthomieu bernard at laas.fr
Wed Sep 22 01:31:10 PDT 2010


Wesley W. Terpstra wrote:
> On Tue, Sep 21, 2010 at 11:28 AM, Bernard Berthomieu <bernard at laas.fr 
> <mailto: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;

Oops. My code was working on 20070826 and I missed that change ...
Not a bug then :-) , sorry.

  Bernard.




More information about the MLton mailing list