Hello Axel,

On Sun, Nov 30, 2008 at 3:36 PM, Axel Simon <Axel.Simon@ens.fr> wrote:

On Nov 30, 2008, at 21:08, Donnie Jones wrote:

Hello (again),

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.

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?

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.

Axel.

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 --disable-gio
...
checking version of GHC... 6.11.20081118
...

$GHC_DEV/bin/ghc --version
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.

Thank you.
__
Donnie Jones