Hello,
No, but ghc does pass a lot of funny flags...
Double check ccall v. stdcall in the import declaration. That bites a
lot of people on Windows.
My import statement originally looked like:
foreign import ccall "mylib.h myFun" my_fun :: CDouble -> IO (Ptr CDouble)
and my original linker error was an undefined reference to 'myFun'.
Changing the import statement to:
foreign import stdcall "mylib.h myFun" my_fun :: CDouble -> IO (Ptr CDouble)
results in the linker complaining about undefined reference to '[EMAIL
PROTECTED]'.
I also tried throwing in "static" but it seems to have no effect.
thanks,
Jeff
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe