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 following gmp's installing:
/usr/lib/libgmp.so.2.0.2
/usr/local/lib/libgmp.so.3.1.1
/opt/ghc/lib/ghc-5.02/libgmp.a
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/libgmp.so' in 'extra_ld_opts' for package 'gmp'
did it work.

-- 
G�rard Milmeister
Tannenrauchstr. 35
8038 Z�rich
[EMAIL PROTECTED]

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to