[MLton] cvs commit: Indirect C calls.

Matthew Fluet fluet@cs.cornell.edu
Sat, 2 Oct 2004 10:19:43 -0400 (EDT)


> >>> MinGW	Doesn't work.  I'm not sure where to get dlopen and friends.
> >>> 	Brent, do you have any ideas here?
> >>
> >> They may not exist, since MinGW is truly Windows, with all that
> >> implies.  It may not have support for dlopen -- I'll look into it.
> >
> > There's at least hope, since dlopen works on Cygwin (which is open
> > source).
>
> Worst case we just write a little wrapper that calls "LoadLibrary" from
> the windows API.  I don't have a Windows system available at the
> moment,
> but I may be able to work on it in a few days.

I believe that this is what SML/NJ does with NLFFI.  There are two DynLink
structures, one for dlopen and one for Windows.