【发布时间】:2012-10-14 07:43:55
【问题描述】:
我在 haskel 中编写了一个基本的 hello world 程序并尝试编译它: ghc 文件名.hs。它生成 .hi 和 .o 文件,但没有可执行文件并显示 链接器中的此错误:
marox@IT-marox:~/Marox$ ghc tupel.hs
链接元组 ...
/usr/bin/ld: --hash-size=31: 未知选项
/usr/bin/ld:使用 --help 选项获取使用信息
collect2: ld 返回 1 个退出状态
谷歌搜索没有返回任何有用的信息。
我在 ubuntu 12.04 上。
我该如何解决这个问题?
【问题讨论】:
标签: linux haskell compilation linker ghc