[Haskell-cafe] System.IO.UTF8 Problem

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Dec 2 00:55:26 EST 2008

On 2008 Dec 2, at 0:38, Ben George wrote:
> $ghc file.hs
> compilation IS NOT required
> byteindex.o: In function `sKE_info':
> (.text+0x8bf): undefined reference to
> `__stginit_utf8zmstringzm0zi3zi3_SystemziIOziUTF8_'
> collect2: ld returned 1 exit status

Use ghc --make so it looks up the dependencies for System.IO.UTF8  
automatically.  Otherwise you need to add them explicitly with - 
package arguments.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list