RE: gtk+hs and libgmp

2001-10-31 Thread Manuel M. T. Chakravarty
"Simon Marlow" <[EMAIL PROTECTED]> wrote, > > > That would be one solution, yes. On your system, if you > > remove /usr/lib/libgmp.a (and /usr/lib/libgmp.so if you have > > one), does it work? You only need these files if you intend > > to build any software which depends on having GMP versi

RE: gtk+hs and libgmp

2001-10-31 Thread Simon Marlow
> > That would be one solution, yes. On your system, if you > remove /usr/lib/libgmp.a (and /usr/lib/libgmp.so if you have > one), does it work? You only need these files if you intend > to build any software which depends on having GMP version 2, > which is unlikely since GMP 3 is source-co

RE: gtk+hs and libgmp

2001-10-31 Thread Gérard Milmeister
On Wed, 2001-10-31 at 15:49, Simon Marlow wrote: > > > Here is the output: > > 1. Main.out from a link that succeeds. > > 2. GtkHelloWorld.out, a sample program from gtk+hs, compiled with > > ghc -v -fglasgow-exts -lgtkHS GtkHelloWorld.hs `gtkhs-config > > --cflags` `gtkhs-config --libs` `gtk-co

RE: gtk+hs and libgmp

2001-10-31 Thread Simon Marlow
> Here is the output: > 1. Main.out from a link that succeeds. > 2. GtkHelloWorld.out, a sample program from gtk+hs, compiled with > ghc -v -fglasgow-exts -lgtkHS GtkHelloWorld.hs `gtkhs-config > --cflags` `gtkhs-config --libs` `gtk-config --cflags` > `gtk-config --libs` > > In fact, you are r

RE: gtk+hs and libgmp

2001-10-29 Thread Gérard Milmeister
On Mon, 2001-10-29 at 20:24, Gérard Milmeister wrote: > > n.b. I send the message only to you, not to the mailing list because > of the attachments. Ooops... -- Gérard Milmeister Tannenrauchstr. 35 8038 Zürich [EMAIL PROTECTED] ___ Glasgow-haskell-u

RE: gtk+hs and libgmp

2001-10-29 Thread Gérard Milmeister
On Mon, 2001-10-29 at 11:11, Simon Marlow wrote: > > > On Sat, 2001-10-27 at 17:27, Manuel M. T. Chakravarty wrote: > > > Gérard Milmeister <[EMAIL PROTECTED]> wrote, > > > > > > > On Thu, 2001-10-25 at 13:53, Simon Marlow wrote: > > > > > It seems very strange that the libgmp in your GHC > > i

RE: gtk+hs and libgmp

2001-10-29 Thread Simon Marlow
> On Sat, 2001-10-27 at 17:27, Manuel M. T. Chakravarty wrote: > > Gérard Milmeister <[EMAIL PROTECTED]> wrote, > > > > > On Thu, 2001-10-25 at 13:53, Simon Marlow wrote: > > > > It seems very strange that the libgmp in your GHC > installation doesn't work. How did you install GHC? Do you >

RE: gtk+hs and libgmp

2001-10-27 Thread Gérard Milmeister
On Sat, 2001-10-27 at 17:27, Manuel M. T. Chakravarty wrote: > Gérard Milmeister <[EMAIL PROTECTED]> wrote, > > > On Thu, 2001-10-25 at 13:53, Simon Marlow wrote: > > > It seems very strange that the libgmp in your GHC installation doesn't work. >How did you install GHC? Do you have problems l

RE: gtk+hs and libgmp

2001-10-27 Thread Manuel M. T. Chakravarty
Gérard Milmeister <[EMAIL PROTECTED]> wrote, > On Thu, 2001-10-25 at 13:53, Simon Marlow wrote: > > It seems very strange that the libgmp in your GHC installation doesn't work. How >did you install GHC? Do you have problems linking other programs, or just gtk+hs >programs? > > > As far as I

RE: gtk+hs and libgmp

2001-10-26 Thread Gérard Milmeister
On Thu, 2001-10-25 at 13:53, Simon Marlow wrote: > It seems very strange that the libgmp in your GHC installation doesn't work. How >did you install GHC? Do you have problems linking other programs, or just gtk+hs >programs? > As far as I know, it happens only with gtk+hs. Small programs I ha

RE: gtk+hs and libgmp

2001-10-25 Thread Simon Marlow
> On Thu, 2001-10-25 at 12:04, Simon Marlow wrote: > > > > > The version in /opt/ghc/lib/ghc-5.02 should work, as should > /usr/local/lib/libgmp.so.3.1.1. The version in /usr/lib > looks like GMP 2, so that would cause the link errors. > > > > Make sure the link command line doesn't have -L/

RE: gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister
On Thu, 2001-10-25 at 12:04, Simon Marlow wrote: > > The version in /opt/ghc/lib/ghc-5.02 should work, as should >/usr/local/lib/libgmp.so.3.1.1. The version in /usr/lib looks like GMP 2, so that >would cause the link errors. > > Make sure the link command line doesn't have -L/usr/lib on it,

RE: gtk+hs and libgmp

2001-10-25 Thread Simon Marlow
> When trying to compile the examples in gtk+hs, I get the > following link > errors: > /opt/ghc/lib/ghc-5.02/libHSstd.a(PrelFloat__413.o): In > function `shP2_2_alt': > PrelFloat__413.o(.text+0x2b0): undefined reference to `__gmpz_cmp_si' > etc.. > When linking simple programs, this doesn't oc

gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister
When trying to compile the examples in gtk+hs, I get the following link errors: /opt/ghc/lib/ghc-5.02/libHSstd.a(PrelFloat__413.o): In function `shP2_2_alt': PrelFloat__413.o(.text+0x2b0): undefined reference to `__gmpz_cmp_si' etc.. When linking simple programs, this doesn't occur. I have the fol