
Hello all, I've recently attempted to get the gtk+hs bindings operational, with evidently no success. They both compile fine, but when trying to "make all" the examples in the gtk+hs tree, it gives up with: /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HS.o)(.text+0x32): In function `__stginit_C2HS_': : undefined reference to `__stginit_CForeign_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HSBase.o)(.text+0x28): In function `__stginit_C2HSBase_': : undefined reference to `__stginit_MarshalUtils_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HSMarsh.o)(.text+0x32): In function `__stginit_C2HSMarsh_': : undefined reference to `__stginit_CString_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HSMarsh.o)(.text+0x3c): In function `__stginit_C2HSMarsh_': : undefined reference to `__stginit_MarshalUtils_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HSMarsh.o)(.text+0x50): In function `__stginit_C2HSMarsh_': : undefined reference to `__stginit_MarshalAlloc_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HSMarsh.o)(.text+0x5a): In function `__stginit_C2HSMarsh_': : undefined reference to `__stginit_Ptr_' /usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(NewStorable.o)(.text+0x28): In function `__stginit_NewStorable_': : undefined reference to `__stginit_Storable_' collect2: ld returned 1 exit status Does anyone have any possible ways to resolve this? Thanks for any help!! Regards, Scott

On Tue, 2004-05-18 at 17:48, scott west wrote:
Hello all, I've recently attempted to get the gtk+hs bindings operational, with evidently no success. They both compile fine, but when trying to "make all" the examples in the gtk+hs tree, it gives up with:
Does anyone have any possible ways to resolve this? Thanks for any help!!
You can try gtk2hs! :-) Downloads at: http://sourceforge.net/projects/gtk2hs/ Version 0.9.5 works with ghc 5.4.x - 6.x and with gtk+ 2.0, 2.2 & 2.4. It has a similar api to gtk+hs (since it started as a fork). Duncan

scott west wrote:
Hello all, I've recently attempted to get the gtk+hs bindings operational, with evidently no success. They both compile fine, but when trying to "make all" the examples in the gtk+hs tree, it gives up with:
/usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HS.o)(.text+0x32): In function `__stginit_C2HS_': [...]
This suspiciously looks like a missing "-package haskell98", try adding this to the linking step. Cheers, S.

Sven Panne wrote:
scott west wrote:
Hello all, I've recently attempted to get the gtk+hs bindings operational, with evidently no success. They both compile fine, but when trying to "make all" the examples in the gtk+hs tree, it gives up with:
/usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HS.o)(.text+0x32): In function `__stginit_C2HS_': [...]
This suspiciously looks like a missing "-package haskell98", try adding this to the linking step.
Cheers, S.
That most definitely did it! Thanks for the tip! Regards, Scott

swest3:
Sven Panne wrote:
scott west wrote:
Hello all, I've recently attempted to get the gtk+hs bindings operational, with evidently no success. They both compile fine, but when trying to "make all" the examples in the gtk+hs tree, it gives up with:
/usr/local/lib/c2hs-0.12.0/ghc6/libc2hs.a(C2HS.o)(.text+0x32): In function `__stginit_C2HS_': [...]
This suspiciously looks like a missing "-package haskell98", try adding this to the linking step.
Cheers, S.
By the way, there is a new version of gtk+hs out a couple of days ago which should fix this problem, as well as a few other 6.2isms. -- Don
participants (4)
-
dons@cse.unsw.edu.au
-
Duncan Coutts
-
scott west
-
Sven Panne