On Tue, Nov 28, 2006 at 12:00:50 +0000, Magnus Therning wrote:
[..]
>Can't really see anything obviously bogus about the following:
>
>  % cat Foo.chs
>  module Foo where
>
>  #include "foo.h"
>
>  fooOne i = {# call foo1 #} i

I solved my problem, but thought I'd send a mail to the list for anyone
who's struggling as much as me (if that's even possible).

The problem was that GHC requires a commandline argument telling it to
deal with FFI.  Including the following in Foo.chs resulted in
successful compilation:

 {-# OPTIONS_GHC -fffi #-}

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]             Jabber: [EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Good powers of observation are frequently called "cynicism" by those
that don't have them.

Attachment: pgpHAr9r8IvEG.pgp
Description: PGP signature

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to