[jhc] including C source files?
Mark Wotton
mwotton at gmail.com
Fri Sep 18 09:24:34 EDT 2009
On 18/09/2009, at 7:31 AM, David Roundy wrote:
> Hi all,
>
> I was wondering what we are supposed to do to include C source files,
> accessed via the FFI? Including them on the command line (as I was
> tempted to do) just results in a complaint that they aren't haskell.
> Do I need to compile it separately with gcc and then pass the object
> file on the command line? I guess I could just experiment, but I'm
> feeling lazy, so I'm asking instead...
I was doing that for Hubris. Worked ok.
Linking JHC-created objects manually isn't as complicated as linking
GHC's objects.
mark
More information about the jhc
mailing list