gtk2hs linking problems

I downloaded the gtk2hs 0.9.12.1 tarball and did the standard configure, make, make install but when I go to compile a test program I get a bunch of errors that look like: compilation IS NOT required [..snip..] (.data+0x38): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziTypes_zdf548_closure' gui.o: In function `r2JC_srt': (.data+0x60): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziButtonsziButton_onClicked_closure' gui.o: In function `r2JC_srt': (.data+0x68): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziTypes_zdf662_closure' gui.o: In function `r2JE_srt': (.data+0x90): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziButtonsziButton_buttonLabel_closure' gui.o: In function `r2JE_srt': (.data+0x98): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziTypes_zdf662_closure' gui.o: In function `r2JG_srt': (.data+0xc0): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziAbstractziContainer_containerChild_closure' gui.o: In function `r2JG_srt': (.data+0xc8): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziTypes_zdf662_closure' gui.o: In function `r2JG_srt': (.data+0xd0): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziTypes_zdf548_closure' gui.o: In function `r2JG_closure': (.data+0x108): undefined reference to `glibzm0zi9zi12zi1_SystemziGlibziAttributes_set_closure' gui.o: In function `r2JG_closure': (.data+0x110): undefined reference to `gtkzm0zi9zi12zi1_GraphicsziUIziGtkziGeneralziGenera This was done on a Ubuntu system. It looks like it can't find a reference to a library but it doesn't say which one. If any one has ran into this problem before or knows what wrong help would be appreciated.

Nabil Alsharif wrote:
I downloaded the gtk2hs 0.9.12.1 tarball and did the standard configure, make, make install but when I go to compile a test program I get a bunch of errors that look like:
How did you compile the program? [snip link errors] This usually indicates a missing --make or -package flag (in your case, -package gtk) in the ghc invocation. Try ghc --make Test.hs HTH, Bertram
participants (2)
-
Bertram Felgenhauer
-
Nabil Alsharif