On Sun, Nov 30, 2008 at 3:36 PM, Axel Simon <Axel.Simon@ens.fr>
One thing I didn't find in your emails is what version of Gtk2Hs you're trying to build. Are you trying to build the current darcs repository?
On Nov 30, 2008, at 21:08, Donnie Jones wrote:
Sorry, for the multiple emails, but I realized I did not state my problem correctly.
I am having linker errors when building a program to display a simple Gtk window; Window.hs is the program and it is pasted below. The linker errors are related to gtk2hs. It seems that GHC can't find the Gtk libraries needed by gtk2hs for linking.
Yes, I built Gtk2Hs from the current darcs repository.
Assuming you are, have you tried to build the same Gtk2Hs tree with a different version of ghc? The linker errors look like errors you'd get if you mix Gtk2Hs compiled with different ghc versions.
I would prefer for Gtk2Hs to work with GHC HEAD, since I have a modified GHC; so, using a different version of GHC is not the route I would like to go...
-- From ./configure output
./configure --prefix=$GHC_DEV --with-hc=$GHC_DEV/bin/ghc
--enable-libglade --enable-cairo --enable-svg --enable-opengl
checking version of GHC... 6.11.20081118
The Glorious Glasgow Haskell Compilation System, version 6.11.20081118
$GHC_DEV/bin/ghc --make Window.hs -o Window.exe
... linker errors from before...
It seems from ./configure that the GHC version and the GHC version with which Window.hs was built are the same versions of GHC. I don't see anywhere that different versions of GHC might be used for compilation.