Re: Greencard, GHC and FFI.

2001-03-17 Thread Mike Thomas
Hi again. > So, when using GC's FFI backend, it generates two source files for you > (and some header files) - in your case, GCTest.hs and GCTest_stub.c. > To achieve linker happiness, you need to compile up the latter and include > it on the link line *and* drop StdDIS.o from that link line. Th

Re: Greencard, GHC and FFI.

2001-03-17 Thread Sigbjorn Finne
Mike Thomas [EMAIL PROTECTED] writes: > > I'm having trouble with using green-card 2 on Windows > with GHC-4.08.2. As the default output for -target ghc seems > to be for the C back-end rather than native code, I thought I would > try the FFI target. > example code deleted > > I get > > $ gh