How does the FFI work?

I'm having problems with the FFI and GHC 6.6. Namely, I edited one of the tools files (Detect.hs) that contains FFI imports, and now I end up with generalised death when I try to compile. The source compiles fine, but on linking I get: /usr/bin/ld: Undefined symbols: _anySuspect _extendParentSet _findMainUse _newParentSet _nextChild The C and H files are hanging around as they should be. Any ideas what's going on? Bob

Scratch that - it was an old Makefile bug that through make doing things in a different order hadn't bitten my bum before now. Bob On 13 Nov 2006, at 09:46, Thomas Davie wrote:
I'm having problems with the FFI and GHC 6.6. Namely, I edited one of the tools files (Detect.hs) that contains FFI imports, and now I end up with generalised death when I try to compile. The source compiles fine, but on linking I get:
/usr/bin/ld: Undefined symbols: _anySuspect _extendParentSet _findMainUse _newParentSet _nextChild
The C and H files are hanging around as they should be.
Any ideas what's going on?
Bob _______________________________________________ Hat mailing list Hat@haskell.org http://www.haskell.org/mailman/listinfo/hat
participants (2)
-
Thomas Davie
-
Thomas Davie