Hi, 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. gustavo
"Gustavo Villavicencio" <gustavov@ucse.edu.ar> 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. Manuel
participants (2)
-
Gustavo Villavicencio -
Manuel M T Chakravarty