符号__module_registered错误的重复定义 [英] Duplicate definition for symbol __module_registered error

查看:85
本文介绍了符号__module_registered错误的重复定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从GHCi收到关于符号__module_registered的重复定义"的错误消息,如下所示:

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

该如何解决?

推荐答案

那很简单,可能表明在为GHCi(在上面的示例中为HSfgl.o)构建库时,应该对ld使用-x选项.

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.

这篇关于符号__module_registered错误的重复定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆