[Haskell-cafe] FFI documentation?
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. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] FFI documentation?
2008/11/8 Nun Aurbiz <[EMAIL PROTECTED]>: > 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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] FFI documentation?
Nun Aurbiz wrote: > 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. I've documented some of manual building in an old post on FFI http://therning.org/magnus/archives/238 Not sure if it's enough to get you on your way though... /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus Haskell is an even 'redder' pill than Lisp or Scheme. -- PaulPotts signature.asc Description: OpenPGP digital signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe