Hi there, > bash.exe-2.04$ pwd > /cygdrive/d/avv/soft/haskell/testc > bash.exe-2.04$ ghc --interactive -fglasgow-exts > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 5.01, for Haskell > 98. > / /_\\/ __ / /___| | http://www.haskell.org/ghc/ > \____/\/ /_/\____/|_| Type :? for help. > > Loading package std ... linking ... done. > Prelude> :load testh2c.hs > Skipping Main ( testh2c.hs, ./testh2c.o ) > ghc: panic! (the `impossible' happened, GHC version 5.01): > resolveObjs: failed > > Please report it as a compiler bug to > [EMAIL PROTECTED], > or http://sourceforge.net/projects/ghc/. > Prelude> :quit > Leaving GHCi. > ocResolve_PEi386: ./testh2c.o: unknown symbol `_testc' You haven't asked GHC to load the additional object file 'testc.o'. Try adding this to the GHCi command line. GHC's diagnostic is a bit unhelpful here, I'll see what I can do about that. > [avv@str12 testc]$ ghci -fglasgow-exts > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 5.00, For Haskell > 98. > / /_\\/ __ / /___| | http://www.haskell.org/ghc/ > \____/\/ /_/\____/|_| Type :? for help. > > Loading package std ... linking ... done. > Prelude> :load testh2c.hs > Compiling Main ( testh2c.hs, interpreted ) > ghc-5.00: panic! (the `impossible' happened, GHC version 5.00): > bytecode generator can't handle unboxed tuples The interpreter can't handle foreign declarations, so you have to load the compiled version of this module. Again, the diagnostic is a little unhelpful, but the next version will have FFI support (at least for foreign import) in the interpreter. Cheers, Simon _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
