[MLton] cvs commit: Indirect C calls.
Sat, 2 Oct 2004 10:02:38 -0500 (EST)
> > >>> 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.
Some people use libtool's libltdl, which gives you a dlopen-esque
interface that works pretty much everywhere. It should be easy to
integrate, since the whole libltdl library is one C file.