Am 02.11.2010 11:48, schrieb Christian Maeder: > Hi, > > after installing > http://lambda.galois.com/hp-tmp/2010.2.0.0/haskell-platform-2010.2.0.0.i386.dmg > 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 library-dirs:. Are there better workarounds? C. > > Cheers Christian > > Linking dist/build/hets/hets ... > Undefined symbols: > "_iconv_close", referenced from: > _hs_iconv_close in libHSbase-4.2.0.2.a(iconv.o) > "_iconv_open", referenced from: > _hs_iconv_open in libHSbase-4.2.0.2.a(iconv.o) > "_iconv", referenced from: > _hs_iconv in libHSbase-4.2.0.2.a(iconv.o) > ld: symbol(s) not found > collect2: ld returned 1 exit status _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users