
$ ghc -ffi -o myprog Main.hs cfile.o
When I try this I also get an error: martin:~/work/prograemmelchen> ghc -ffi -o myprog Main.hs cfile.o ghc-5.02.2: unrecognised flag: -ffi Usage: For basic information, try the `--help' option. Do I use a wrong GHC version? THX, Martin.

"-fffi" three fs -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Thu, 12 Dec 2002, Martin Huschenbett wrote:
$ ghc -ffi -o myprog Main.hs cfile.o
When I try this I also get an error:
martin:~/work/prograemmelchen> ghc -ffi -o myprog Main.hs cfile.o ghc-5.02.2: unrecognised flag: -ffi Usage: For basic information, try the `--help' option.
Do I use a wrong GHC version?
THX, Martin. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

"-fffi" three fs
This time I also get an error: martin:~/work/prograemmelchen> ghc -fffi -o myprog Main.hs cfile.o ghc-5.02.2: unrecognised flag: -fffi Usage: For basic information, try the `--help' option. Main.hs looks like: module Main ( main ) where foreign import ccall "cfun" cfun :: IO () main :: IO () main = do cfun Is the error here?

Perhaps you need a newer version of GHC...i just noticed you have and 02...I think you need an 04 to get the new FFI... -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Thu, 12 Dec 2002, Martin Huschenbett wrote:
"-fffi" three fs
This time I also get an error:
martin:~/work/prograemmelchen> ghc -fffi -o myprog Main.hs cfile.o ghc-5.02.2: unrecognised flag: -fffi Usage: For basic information, try the `--help' option.
Main.hs looks like:
module Main ( main ) where
foreign import ccall "cfun" cfun :: IO ()
main :: IO () main = do cfun
Is the error here? _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Hal Daume III
-
Manuel M T Chakravarty
-
Martin Huschenbett