gtk+hs and libgmp

Gérard Milmeister
25 Oct 2001 10:07:50 +0200

When trying to compile the examples in gtk+hs, I get the following link
/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'
When linking simple programs, this doesn't occur.
I have the following gmp's installing:
It seems that the programs only link with the version in /usr/local/lib.
I tried putting this path in 'library_dirs' for package 'gmp' in
'package.conf', but to no avail. Only when I explicitly put
'/usr/local/lib/' in 'extra_ld_opts' for package 'gmp'
did it work.

Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich