bug report: 20100608 mingw fails to link imported function

"Wesley W. Terpstra" <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <[email protected]>
(Forwarded for the archive)

On Tue, Sep 21, 2010 at 11:28 AM, Bernard Berthomieu <[email protected]>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;

_______________________________________________
MLton mailing list
[email protected]
http://mlton.org/mailman/listinfo/mlton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.