Foreign import

Gustavo Villavicencio gustavov at
Tue Mar 4 09:47:46 EST 2003


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.
Any help will be welcome.

More information about the FFI mailing list