link problem under macosx
Christian.Maeder at dfki.de
Tue Nov 2 08:03:04 EDT 2010
Am 02.11.2010 11:48, schrieb Christian Maeder:
> after installing
> and various more libraries using cabal, we get the following linker
> error below.
> A simple hello program compiles and links fine and uses
> /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
> 7.0.0) as shown by "otool -L".
> Does someone have an explanation or solution?
adding "-L/usr/lib" as first argument to ghc solved the problem.
Another cabal-package (gtk and friends) used /opt/local/lib under
Are there better workarounds?
> Cheers Christian
> Linking dist/build/hets/hets ...
> Undefined symbols:
> "_iconv_close", referenced from:
> _hs_iconv_close in libHSbase-18.104.22.168.a(iconv.o)
> "_iconv_open", referenced from:
> _hs_iconv_open in libHSbase-22.214.171.124.a(iconv.o)
> "_iconv", referenced from:
> _hs_iconv in libHSbase-126.96.36.199.a(iconv.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
More information about the Glasgow-haskell-users