From: Jens P. <pet...@re...> - 2003-06-16 07:59:21
|
Hi, Did anyone ever manage to get gtk2hs working with ghci-5.04.3? When I try to load it I get: % ghci-5.04.3 -package gtk2 : : Loading package data ... linking ... done. Loading package gtk2 ... GHCi runtime linker: fatal error: I found a duplicate definition for symbol __stginit_Arrow whilst processing object file /usr/lib/ghc-5.04.3/gtk2hs/gtk2hs.o This could be caused by: : : I'm pretty sure this is a known problem - not sure if it has ever worked with gtk2hs? I see that __stginit_Arrow is also defined in HSdata.o, but I'm not sure what the cause of the problem is? I tried a little to get gtk2hs to build with ghc-6.0, but only got to: abstract/Object.hs:121: Unacceptable argument type in foreign declaration: GObject When checking declaration: foreign import ccall unsafe "static &g_object_set_property" g_object_set_property :: (GObject) -> ((Ptr CChar) -> ((GValue) -> (IO ()))) seems the FFI in 6.0 doesn't like GObject... Jens |