[Haskell-cafe] FFI documentation?

Luke Palmer lrpalmer at gmail.com
Sun Nov 9 01:22:43 EST 2008


2008/11/8 Nun Aurbiz <nunofaurbiz at yahoo.com>:
> Where do I find the documentation for the FFI for GHC?  I've read the FFI
> report, the GHC user guide and scoured haskell.org but they all gloss over
> what commands you actually need to give GHC and how to give them.  "foreign
> import blah blah" just gives me undefined references.

You need to give the libraries you are using on the command line just like gcc.

  ghc --make Foo -lbar

Luke


More information about the Haskell-Cafe mailing list