Foreign import

Manuel M T Chakravarty chak at
Tue Mar 4 16:56:39 EST 2003

"Gustavo Villavicencio" <gustavov at> wrote,

> I'm a new ffi user and I have some problems with foreign import
> declaration. I'm don't have any problem to access C standard functions.
> However, I cannot access to my own functions in mylib.h by means of
> foreign import "mylib.h myfun" hmyfun :: ...
> May be I'm omitting some compilation step or parameter also, since I'm
> applying the same compilation process to call C standard functions.
> I'm working with ghc 5.04 on SuSe Linux 7.0.

You should say what goes wrong.  Eg, paste the error
messages of the compiler and/or linker into your email.


More information about the FFI mailing list