Re: Including c files in libraries

Matthew Fluet <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <CAMrhFL512YS45sRNf7tCjNohDQcAadodzXy_ibaOeQHeBxuwfw@mail.gmail.com>
On Thu, Nov 13, 2014 at 6:56 AM, Lars Magnusson <[email protected]> wrote:
> I'm sure I'm missing something obvious, but I can't find out how to include
> c files in a library.
> I have written a reusable library for image analysis in SML. This library
> relies on C code for a couple of performance critical graph algorithms. I
> would like for users of the library to be able to include the library by
> including a single mlb file, but I can't figure out how to include a c file
> in a project without specifying it in the build command.
> Is this possible?

Sorry, it is currently not possible to embed build options into MLB
files.  It's on our http://mlton.org/WishList.

John Reppy's SML3d project (http://sml3d.cs.uchicago.edu/) also needs
non-trivial library support.  He describes a config script that is
used to generate the appropriate compiler flags in his ML'14 paper
(Section 7; http://sml3d.cs.uchicago.edu/papers/ml14-sml3d/paper.pdf).

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
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.