> "-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?