tags:

views:

43

answers:

1

I get an error message from GHCi about a "duplicate definition for symbol __module_registered", like this:

 GHCi runtime linker: fatal error: I found a duplicate definition for symbol
           __module_registered
        whilst processing object file
           /usr/local/lib/ghc-6.2/HSfgl.o

How to fix this?

+1  A: 

Thats is easy, probably indicates that when building a library for GHCi (HSfgl.o in the above example), you should use the -x option to ld.

carlfilips